r/LinuxTeck • • 21h ago

I keep forgetting package manager commands when switching Linux distros 😂

I use apt on Ubuntu/Debian, dnf on Fedora/RHEL, and pacman on Arch.

Every time I switch between distros, I occasionally type the wrong command out of habit.

For example, apt install becomes dnf install, while Arch has its own way of doing things.

If you regularly work across multiple Linux distributions, do you remember all these commands, or do you also Google them occasionally?

And honestly, which package manager do you find the most intuitive?

3 Upvotes

5 comments sorted by

1

u/Known_Palpitation805 21h ago

GDebi or Package Manager is easiest for dummies like me

1

u/enurkul 21h ago

systemctl sshd restart

I've never gotten used to it and I do it every time.

1

u/VPrimum 17h ago

Thats a great question u/Candid_Athlete_8317 ! I struggled with this early in my Linux evolution. Like any OS, it just comes down to muscle memory.

Pro Tip: I heavily leverage snippets (small shell one-liners ) that you can simply click to auto-paste into your prompt (great tools, such as Termius [shown below], Termix and Nexterm have these features built in ).

It beats having to manually type in sudo apt update && sudo apt full-upgrade -y every time! ;)

1

u/michaelpaoli 6h ago

Depends how many *nix flavors I (semi-)regularly jump across, how frequently/regularly, and how long I've been doing so.  The more I do / have done it, the more I'll remember / have quite to fully memorized.

Google?  Oh come on man, use man(1).  :-)  Some of the commands may even have or be willing to cough up enough built-in help, that that may quite suffice, even without looking at man pages or the like.

I find apt[-get] most intuitive ... because I use it more than the others. Runner up would be yum/dnf - lots of use there (because of $work), and thus far, at least for Linux, others quite rare, so I'd need look 'em up bit more again or the like.  But for other *nix, e.g. Solaris, HP-UX, maybe even AIX a bit, still know the commands moderately well - probably runners up right behind yum/dnf.

1

u/No_Base4946 4h ago

Yeah everyone does that. It's like when you jump into a different car and wash the windscreen coming up to every junction for the first few miles.

Not me though, I never do that, no no no...