Updating packages - help

Hello there,

maybe i am not getting something right now, but how do i update my packages? there should be an update for a software i use, but it isnt there yet. how do i update a package?

It depends of if you are using flakes or not. If you have just a “normal config” than just do this command nixos-rebuild switch --upgrade.
If you want that one specific package is updated make sure that the Version you want is the latest Version in the nixpkgs. If you search this package under the info there is the version written.
If you however are using flakes you first need to update you flake.lock with this command sudo nix flake update (you need to be in the same directory as your flake). Then do a simple rebuild.

2 Likes

NixOS uses channels to provide updates to packages and the system. First, ensure your channel is up to date:

sudo nix-channel --update

This fetches the latest package definitions from the configured channel.

After updating the channel, rebuild your system:

sudo nixos-rebuild switch --upgrade

This will update all packages to the latest versions available in the channel.

nevermind, i was using the wrong channel, the package wasnt updated on the stable channel yet.