r/LinuxTeck • • 3d 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?

6 Upvotes

9 comments sorted by

1

u/Known_Palpitation805 3d ago

GDebi or Package Manager is easiest for dummies like me

1

u/enurkul 3d ago

systemctl sshd restart

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

1

u/VPrimum 3d 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 3d 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 3d 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...

1

u/Weird-Initiative-659 2d ago

I believe you can alias all the commands. sudo wtf install crap. LLM has instructions on how to do this.

1

u/FaultWinter3377 2d ago

I have pacman down pretty well. Here’s the real issue… I used apk for a bit. WTF does apk use add and del instead of install and remove like every other package manager (other than pacman)? So I use Fedora a bit and keep typing dnf add. Every. Single. Time.

I’m back on Arch and it’s perfect again.

1

u/ShipshapeMobileRV 1d ago

Why not set up your own install alias each time you install a new distro? Then no matter what distro you're on, you type the same command every time.

1

u/verdigris2014 9h ago

i don’t do it myself but this is the unix way, or write a script that will test the environment do what you want.