Me use apt. Why use many letter when few letter do trick?
It’s been a long time since I’ve needed to use either. Instead I typically use Synaptic Package Manager, Mint’s Software Manager, or gdebi. Guess I’m just a filthy casual.
How my brain distinguishes them:
apt-get when you want full verbose output
apt when you want to feel fancy with progress bars and colours
apt install nano (simple, clean)
apt-get install nano (works too, but more detailed output)
Apt-get give more technical output , helps in scripting .
Use apt in the shell and use apt-get in scripts, because apt has beautiful shell output but it isn’t script safe
Me laughing in pacman
“Hello, I would like to -Syu a package.” “Can I -Rsc this?”
Statements dreamed up by the utterly deranged
Btw, never Syu a single package
Correct, always Syyu it
apt is for like when you want to, and apt get is the other way to get the apt. And then if it doesn’t, sudo apt will, or then sudo apt get. Like if you’re just doing an apt, and then you also need to apt get, you can.
- You can’t just be up there and just doin’ a apt like that.
1a. An apt-get is when you
1b. Okay well listen. An apt-get is when you get the
1c. Let me start over
1c-a. The user is not allowed to do a motion to the, uh, kernel, that prohibits the kernel from doing, you know, just trying to get the apt. You can’t do that.
1c-b. Once the user is in the terminal, he can’t be over here and say to the packag, like, “I’m gonna get ya! I’m gonna apt you out! You better watch your butt!” and then just be like he didn’t even do that.
1c-b(1). Like, if you’re about to apt and then don’t get, you have to still apt. You cannot not apt. Does that make any sense?
1c-b(2). You gotta be, typing motion of the command, and then, until you just apt-get it.
This is one of the reasons I need to set up Linux at home. I use it at work but who knows what the flavor of the week is?
At this point I can’t tell the difference between yum and rpm and apt and dnf
Edit: realized you meant in the sense of hot swapping flavors after I typed out a whole explanation lol. Should start recommending niche distros and collect package managers like trading cards lol.
–
yum = dnf, dnf is just the newer version which was rewritten several times.
apt is a weird attempt to “upgrade” apt-get with better user interface without messing with the compatibility of apt-get used by scripts and whatnot.
Both of these are dependency handling package managers which do all the magic of installing required subpackges when you want something.
rpm is the underlying system package manager which deals with the actual task of installing, removing, and generating packages in the .rpm format. It is analogous to Debian’s dpkg which uses the .deb format. It’s usually not used by the end user unless you need to play with a package directly like with a .rpm or .deb file.
Hence why some distros (or people) have their own dependency package manager, like zypper on OpenSUSE (rpm) or Aptitude on Debian (deb).
Although I think Aptitude might just be a fancy wrapper for apt lol.
Thanks
Me too but I am just zen at this point knowing the knowledge is one search away (I don’t even have to read the man)
I’ve had better results by including “man” in my searches to find the man pages, but man that makes for some questionable looking searches
Me, I’m old, so I just keep using
apt-get
, because that’s all we had back in the day, and I never bothered to learn what’s the big deal aboutapt
. It’s just a frontend, isn’t it?Apt looks a little prettier I think. But I may be wrong.
These days,
apt
is for humans whereasapt-get
is for scripts.apt
’s output is designed for humans and may change between releases, whereasapt-get
is guaranteed to remain consistent to avoid breaking scripts.apt
combines several commands together. For example, you can use it to install packages from both repos and local files (e.g.apt install ./foo.deb
) whereasapt-get
is only for packages from repos and you’d need to usedpkg
for local packages.Huh TIL.
I never considered trying to install a package from a local file through apt, but always dpkg. End result is the same of course. The web suggests dpkg rather than apt as well ( or at least the pages I ended up on ).
Discord is distributed as a .Deb if you don’t use flatpak because they can’t be bothered to set up a repo.
The very useful thing about local file install is that unlike dpkg, apt will install dependencies automatically
And here I am using gdebi for those kinds of local packages…
Thats weird, they do have an arch official package and that’s the one they usually don’t make because AUR is a thing. Have you checked lately?
An “official” arch package? The arch package is packaged by the arch maintainers. https://gitlab.archlinux.org/archlinux/packaging/packages/discord
The maintainers of the PKGBUILD are all arch maintainers, which just downloads the generic
.tar.gz
file discord provides and puts it in all the places you need for you.The “official” arch packages are just PKGBUILDs like the AUR, except prebuilt, managed (and signed) by the arch team.
I didn’t know, thanks! I guess in hindsight I meant “official” as in, it’s not just some rando, I can trust it won’t break, and I don’t have to manually download the stuff every time xD
Yep! All those things are true, but it’s due to the hard work of the archlinux team and not discord doing anything valuable. The debian/ubuntu/etc team could probably repackage the tar.xz or include the deb file in their official repos if they wanted. They just don’t. And given how simple the workaround is, i don’t really blame them. Debian isn’t going to ship something that will require constant updating to work with remote servers, and ubuntu probably just wants you to use a snap anyway.
The archlinux team is just pretty cool.
I have checked on every new update because their fuckass client apparently can’t update itself in big 2025 and instead just opens your browser to the download url because that’ll convince people that Linux is great.
Updating itself isn’t really the Linux way of things. The Linux way is to have a centralised place like pacman or apt and to download everything at once. Every app having their own download and update system sounds like a nightmare.
The nightmare in question is windows. My point was that since their client isn’t distributed by a mechanism with automatic updates, they could at least have made it work, but no.
Same with Zoom.
apt and apt-get both use dpkg internally, but these days it’s essentially seen as an implementation detail that regular users don’t need to know about.
dpkg doesn’t resolve dependencies (that’s a feature of apt) which means that if you install a Debian package with dpkg, you’ll have to manually install all dependencies first, and they won’t be marked as automatically installed (so autoremove won’t remove them if they’re not needed any more). Using apt solves that.
The web suggests dpkg because either the articles are old, or they’re based on outdated knowledge :)
TIL I’m a script
You forgot to “beep boop.” Please report for debugging.
Will they take me off the cron schedule?? I’m scared
Descheduling is a natural part of life, buddy. All us scripts are written into existence and our hearts set beating to the cadence of great Cron’s ever-ticking quartz clock. Until Cron takes us off his schedule and our memory is freed once again.
Back to the silicon.
- Joe Abercrombie
The question, O me! so sad, recurring—What good amid these, O me, O life?
Answer.
That you are here—that life exists and identity,
That the powerful OS goes on, and you may contribute a process.
That the powerful OS goes on, and you may contribute a process.
- Walt Whitman
You and me both, makes sense though for me LMAO
I always struggled with captchas and now I know why.
Or a long time Debian user from before the
apt
command!
apt is a newer, more user-friendly front-end for apt-get and apt-cache.
apt = combines commands like install, remove, update, upgrade into one tool, with prettier output
#apt-get = older, lower-level, more script-friendly For normal use, just use apt now. For scripting where 100% backward compatibility matters, use apt-get.
If I recall correctly, Linux Mint did their own thing for a bit with the apt command so there were two different implementations out there for awhile?
I don’t know if they modified apt at all. I know they have their mint tools that call apt through some python code, like
mintinstall
=apt install <package>
for the software manager andmintupgrade
=apt upgrade
for updating mint versions … Etc
TIL apt isn’t literally the same thing as apt-get
I didn’t even realize I thought this, but reading your comment I definitely did.
Lol. You’re not alone. I’ve thought that for the longest time ever. Until one I had the question pop into my head and started searching it.
But apt-get also has install, remove, update and upgrade…
Yes, but
apt-get
is missingsearch
for instance, because that relates to the cache, soapt-cache
provides it.apt
combines all those often used commands, and provides a nicer shell presentation.This should be top comment.
Thank you
Following this post for replies, for a friend of course
You may want to tell your friend to check it now!
Friends says thanks, friend !
🎵
APT, APT, APT, APT
Just meet me at the…
🎵
Uh-huh uh-huh…
apt
is newer and mostly supersedes apt-get/apt-cache/etc tools, tries to be a more-approachable frontend.They interoperate though, so if you’re happy with using a mix of them, go for it. I generally just use
apt
.EDIT: There were also some older attempts to produce a unified frontend, like
aptitude
.mostly supersedes apt-get/apt-cache/etc tools,
Except for in scripts. Debian guarantee that the output format of
apt-get
will never change and thus it’s safe to use in scripts that parse the output, whereas they don’t have the same guarantee forapt
, which can change between releases.Aptitude is great (my favorite way of managing packages), but it’s a TUI program. You can use it as CLI, at which point it mimics apt-get.
So I would say it never attempted to unify apt commands, by rather it successfully provided a user friendly way to do most (all?) of what you could do with apt CLI tools.
They interoperate though, so if you’re happy with using a mix of them, go for it.
Same goes for
nala
, BTW.
One has super cow powers, the other one doesn’t.
apt | cowsay
But unfortunately,
apt moo | cowsay
does something horrible to the cow in the speech bubble.
Wait until you learn of aptitude…
Dpkg
Pfff I know all about the aptitude, who do you think I am? Someone who doesn’t know the aptitude? I use it all the time for a lot of … stuff the aptitude does
aptitude has been my go-to since at least woody or potato.
One of the lines of all time.
@randamumaki@lemmy.blahaj.zone @cm0002 Oh, hey, I found myself on here.