r/linuxquestions • • Nov 04 '26

Advice Keeping track of different package managers

I hate the fact that I can't keep up with what packages/software I have installed where and how to update them.

I use Fedora with Gnome and use dnf (so slowwwww ffs), flatpak, cargo, manual installations, etc. I used to keep up with this, but don't have the time nowadays and update very sporadically so I always forget. Another problem is that some apps used to have packages and now they don't or vice versa.

Apart from switching to Nix, is there any way to keep track of this and maybe even update all at once? Or should I just join the bandwagon, even if I don't really have the time to maintain my system regularly?

0 Upvotes

8 comments sorted by

9

u/Excellent-Love-6943 Nov 04 '26

Simple: Don't install manual packages.

You only need one package manager. Two if you go the flatpak route, but you're literally doubling the complexity of package management.

5

u/GiggleSamurai Nov 04 '26

topgrade does exactly this: one command that updates dnf, flatpak, cargo and a lot more in one go (for cargo it needs `cargo install cargo-update`). For the "what did I install where" part, `flatpak list --app` and `cargo install --list` give you each manager's list.

1

u/SDG_Den Nov 04 '26

topgrade is a good shout! at some point i built something similar in bash, but i havent maintained it because instead, i'm using nix for everything now.

1

u/ludonarrator Nov 04 '26

cargo is applicable beyond Rust packages? TIL...

1

u/billdietrich1 Nov 04 '26

Make a shell script that contains the update commands you need. Run that.

1

u/toolz0 Nov 04 '26
os.sh figures out what the platform is
------------------------------------
BASE=`os.sh base`
case "$BASE" in
   rhel)
      sudo yum update -y
   ;;
   debian)
      sudo apt-get update
      sudo apt-get -y upgrade
      sudo aptitude safe-upgrade -y
      sudo apt autoremove -y
   ;;
   raspbian)
      sudo apt-get update
      sudo apt-get -y upgrade
      sudo apt-get -y dist-upgrade
   ;;
esac

1

u/Quaigon_Jim 27d ago

Is not something that anyone needs to do

-1

u/Status-Blacksmith-95 Learning Linux Nov 04 '26

I learnt something new reading your post ! and by your answer u/GiggleSamurai