ujust update
I use Bazzite BTW
update_pm() { sudo apt update sudo DEBIAN_FRONTEND=noninteractive apt upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" sudo DEBIAN_FRONTEND=noninteractive apt autoremove -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers install || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers install || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers install || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers autoinstall || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers autoinstall || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" echo y | sudo ubuntu-drivers autoinstall || true sudo apt install -f -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" sudo DEBIAN_FRONTEND=noninteractive apt autoremove -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite" sudo apt clean sudo apt autoclean flatpak update -y || true flatpak uninstall --unused -y || true sudo snap refresh || true brew update echo y | brew upgrade echo y | brew autoremove brew cleanup uv self update uv tool upgrade --all npm i -g npm npm update -g }Flatpak?
sudo apt update && sudo apt upgrade -y && sudo flatpak update -yflatpak is only “flatpak update -y” from what i remember
Sure, if you want to type your password 17 times.
I’m a
pveupdate && pveupgradeguy myselfAren’t you supposed to do
apt full-upgradeinstead ofapt upgrade?Also wtf is
pkconfor?For extra fun, there’s also
dist-upgrade

I don’t get it. Looks like a script that runs all these things, but I don’t get the one dollar.
The
$1is a positional variable. So if you run./script.sh arg1$1 would be arg1 in that example, $0 would be the ./script.sh. It’s the simplest way to pass an argument to a script.So… huh? What role does this play, since all the lines in the picture have $1? If you run it with arg1, won’t it run them all? And if you left out arg1 and also didn’t add $1 to each line, wouldn’t it also just run all of them?
If you run it with arg1, won’t it run them all?
Yes, that is the intention. When you’re following some guide online and it requires you use some “software”, you may not know how to install that software.
This install.sh script tries package managers, because one of them will probably work. Others will fail.
For example, installing numpy (python package): pip install succeeds and all the other ones (hopefully) fail.
Installing libcurl4-openssl-dev (curl with openssl library file): apt-get install works and all other ones (hopefully) fails.
Longer and more thorough explanation:
https://www.explainxkcd.com/wiki/index.php/1654:_Universal_Install_Script
Never thought about it, but wouldn’t that just fail after the first one it fails to find? I think most install commands return nonzero if nothing is installed
Should probably use or instead of and
Nope, this launches all those commands in parallel. Logical and is
&&.
This one hurts.
Don’t forget to check
needrestartor similar afterwards if you have no idea what has happened.This matches my experience exactly.
I’ll keep making Debian users aware that they can do it all in one command since Trixie.
sudo apt --update --autoremove --with-new-pkgs upgradeFirst they changed apt-get to apt. Now this.
I can’t keep up with all the sudden changes.
I also like topgrade for this.
I love you. Thanks for sharing 😌
Ok now that’s pretty good. Can we use this with dist-upgrade/full-upgrade?
Yes, it’s a command from apt-get that apt only passes through:
–auto-remove, --autoremove
If the command is either install or remove, then this option acts like running the autoremove command, removing unused dependency packages. Configuration Item: APT::Get::AutomaticRemove.–with-new-pkgs
Allow installing new packages when used in conjunction with upgrade. This is useful if the update of an installed package requires new dependencies to be installed. Instead of holding the package back upgrade will upgrade the package and install the new dependencies. Note that upgrade with this option will never remove packages, only allow adding new ones. Configuration Item: APT::Get::Upgrade-Allow-New.-U, --update
Run the update command before the specified command. This is supported for commands installing, removing, or upgrading packages such as install, remove, safe-upgrade, full-upgrade. This can be useful to ensure a command always installs the latest versions, or, in combination with the –snapshot option to make sure the snapshot is present when install is being run.Excellent! Feel like I’ve been continuously learning new things about Aptitude for the better part of 20 years lmao
yay
When I just want to go to bed and deal with the repercussions of my actions in the morning:
yay --noconfirm && reboot
Am I the only one that always has to LOL when I think about how Red Hat tried so hard to push for modules to be a thing with DNF but then they decided to kill it off because nobody wanted to maintain it. lmao
There is nothing wrong with using your distro’s app center. Often it will save you extra steps by updating things like Flatpaks as well, if you use them (or Snaps, if you’re an insane person).
I also like graphical frontends because there I can see screenshots of the software, because there’s a lot of software out there with really bad UI and UX.
Flatpaks and snaps are two examples of deliverables with terribad integration and low SLSA scores. They should be considered toxic.
Snaps I agree just because there is no open source snap store and it’s impossible to set up a 3rd party store.
Flatpaks though? They let install packages with weird / rare / not available requirements on any distro. All open source with a really nice sandbox. I think flatpaks are great.
Let’s look at the alternatives:
- System packages: not viable for the majority of packages because the distro devs don’t have time to manually package everything
- AppImage: even worse integration (like no desktop shortcuts on install). Developer has to guess what libraries need to be included and which ones are already installed by the user. No sandboxing. Probably worse SLSA scores.
- AUR: even worse security. No sandboxing. Packages are often compromised by hackers.
Immutable Linux users didn’t like that
Unless you use openSUSE Tumbleweed, right? Then it’s “sudo zypper dup”, from what I’ve heard.
OpenSUSE used to use yum and then briefly dnf. Zypper is fairly recent in the last several years.
If that’s the game we’re gonna play:
yay
I’m old enough to
yum
RIP in peace yellow dog linux
Yum was used on way more than Yellow Dog Linux. CentOS, Fedora, RHEL, etc all did
I was annoyed when i discovered cachyos used paru.
I understand defaulting to prompting a code review is a good idea, especially now, but i was very used to typing yay (yes I installed yay instead of making an alias)
paru is based, Rust >> Go lol
CachyOS has this app called “Shelly”. I use nothing but that. It does everything.
Is it just a terminal app?
No, it’s a whole GUI. It’s new and in active development. So there are always new updates. I really like it.
No, that would be arch-update.
Shelly is a really handy GUI. Also manages AppImage and stuff, I think the only thing they didn’t include are Snaps.
Well no one uses Snaps on purpose so that’s fine.
















