this post was submitted on 27 Apr 2025
839 points (98.4% liked)
linuxmemes
24686 readers
1344 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I got mistaken. See replies for explanation
=======
Apt: get whatever is in the cached package list
Apt-get: lookup the package to see the latest version and get that one
Unless you always
apt update
,apt-get
is the go to choice for modern day LinuxThere's also the
apt-apt
command, who triggers any audiophile to start complaining about mainstream music quality these daysI disagree. According to Debian's own documentation, apt is a newer front-end for your daily CLI updating and installing needs.
It has simplified syntax, and combines the most-used functions and options.
It is not meant for use in scripts, cause the syntax may change between versions.
The dependency-solver in the back-end is identical.
tl/dr:
apt is shorter to type and will have prettier output, starting with Debian 13.
Use apt-get inside scripts.
Uh!? I've been lied to! Editing comment for clarity
I can concur, thats what my research also indicates. Plus I am too lazy to type apt-get
My personal experience is that apt-get will absolutely miss packages that apt will capture.
I was actually surprised by that about six months ago and finally switched over to apt after years of apt-get.
That's actually one of the reasons I switched from Debian to Arch.
Dependency resolution shouldn't differ based on which front-end you use.
Debian has dpkg, aptitude, apt-get, apt, synaptic, the Software Center...
Fedora has rpm, dnf, yum. SUSE adds a couple more. I don't get it.
A linux distro should have one package manager, doing different stuff with it should be done via different commands/options inside it.
As a (still) Linux novice, this is something that I noticed with later distributions but never thought about your valid point. I did always wonder why there should be different places to install things in the same OS. It would probably be fine if they handled things the same, but then all you're doing is changing the UI. It never "felt" like they did things the same.
Out of curiosity, can pacman update flatpaks? Or do you still have to update those independent of your package manager?
It can't. I use a very simple script to combine updates and the basics of system maintenance:
Alias is your friend.
alias install="sudo apt update && sudo apt install -y"
install git
I'd recommend avoiding aliases that conflict with regular commands, and there's a standard Linux command called
install
. https://man7.org/linux/man-pages/man1/install.1.htmlIf you're going to always pass the -y flag then I'd add --no-install-recommends too.
Oh sorry.
install is already a part of make/cmake as well, so it'd break any of those workflows also.
The joke I thought I was making was "I'm too lazy to type out what I want, let's just break the system instead."