LoL
mommy install <package> --sudoI do both. If I know exactly what I want to install, I’ll install it from the terminal because it’s often more direct. If I go “I need an app that does thing, what’s available?”
nix flake update && nixos-rebuild switch --flake .Non of those.
sudo zypper dupAnother on Tumbleweed?? Hi!
indeed :)
me three!
This matches my experience exactly.
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 }Just use
mommydude‘true’ ?
in case I run with set -e
Flatpak?
ujust update
I use Bazzite BTW
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.
it’s not supposed to ask for any password at all
I’m a
pveupdate && pveupgradeguy myselfDon’t forget to check
needrestartor similar afterwards if you have no idea what has happened.Aren’t you supposed to do
apt full-upgradeinstead ofapt upgrade?Also wtf is
pkconfor?It is what Sailfish OS uses as default package manager even though it can also use zypper.
For extra fun, there’s also
dist-upgrade
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
This was basically an attempt to make FreeBSD by redhat

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?
So the joke is, you’ve got something you want to install, be it a Python module, Java library, steam game, desktop application, whatever. You want it installed, figuring out which package manager has it and remembering the exact command syntax starts getting to be a pain, so just use this script to try installing it from a variety of sources.
You would evoke it by running
./install.sh packageand it will replace all instances of $1 with the string “package” at runtime. The ampersand at the end of each line will run that line as a separate background process rather than in the foreground process, so effectively this will attempt to install “package” or whatever you put in as an argument from a half dozen sources simultaneously in parallel.These include the old and new Python package managers, the old and new Red Hat package managers, debian/Ubuntu’s APT with and without sudo, cloning a git repo and building from source, and the icing on the cake is curling directly into bash.
Don’t curl directly into bash. You’ll catch genital rabies.
Remember that this is an XKCD comic, it’s a joke. The alt-text says “The failures usually don’t hurt anything and if it installs multiple versions it increases the chance one of them is right. (the ‘yes’ command and ‘2>/dev/null’ are recommended additions.)” “Yes” is a bash command that will spam ‘y’ in the terminal, the point of it is to answer yes to any questions an automated system asks, and 2>/dev/null will stop it from displaying errors. These add an even deeper level of Yolo-ing.
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.
yay
When I just want to go to bed and deal with the repercussions of my actions in the morning:
yay --noconfirm && reboot













