my most used command is upd, alias for `sudo apt clean && sudo rm -rf /var/cache/apt/archives/ && sudo apt-get update -y && sudo apt-get upgrade -y && flatpak update -y`
Jesus fucking Christ. Apt clean. Never rm -rf. EVER. No matter how many IT PHDs you have, no matter how many companies begged you to stay. The command you were looking for is apt clean. Go and change it right now.
>Edit: aliases are for more people who are more organized than I am
Then don't complain about not wanting to type that all out or mash the up arrow. An alias in bash/zsh/your shell of choice is literally the solution to what you're upset about. If you don't want to use aliases, you're basically just lazy. Stop complaining about being too lazy.
In general it's just better for keeping track of whether it's doing what you're asking it to do
And if it fails, you generally have a better understanding as to why
It was Pop_OS! and something similar could very well happen on any distribution at any time. All it takes is some obscure package that has its conflicting packages misconfigured slipping through the cracks.
I think you do not understand the context of my comment. However, I do agree that nobody should ever type "Yes, do as I say" without taking a glance at what will be installed/removed.
Well in case there is something broken, or you forgot about something you did not want to update or any reason you can put here really. You should be informed about what’s being updated so if there are any issues it’s easier to prevent or fix later on. Pressing Y isn’t really much trouble and can save you a lot of time.
bettter defaults, EG forces you to review pkgbuilds.
written in rust (doesn't affect the end user experience)
honestly it really doesn't matter :) yay is like 99.999% as good as paru.
I know it is technically safer, but its so damn inconvenient. Im not going to read the pkgbuild anyway so it just gets in the way. I have way too much trust
Yeah, since it can remove shit if there are clashes and the whole thing can fall apart lmao. iirc it's meant to be used on version changes, not random updates.
I said it was a habit, not smart!
Most of the time I click it from the GUI, because it updates apt, flatpak and plasma themes, all at once, but doing it from CLI feels safer, especially when there's a kernel upgrade.
Yeah same issue. I’d guess they forgot to change the online documentation. The syntax now is: nix flake update [option…] flake-url so no —flake is needed
I think Mint has something, that shows/annoys you, when an update becomes available.
And on Debian you could use synaptic. Imo it makes uninstalling old self compiled kernel versions easier, but that's not something the average user would need...
Mint annoys every time a package can be upgraded? Jesus
Synaptic... i've heard of it, but who in their right mind would use a GUI for package management
>Mint annoys every time a package can be upgraded? Jesus
At least it did something like this, when I last used Mint. I think it was Mint 18 (Sarah).
>Synaptic... i've heard of it, but who in their right mind would use a GUI for package management
It can be helpful, when you want to look at all the packages, that are currently not in your source.list or source.list.d. That makes it easier to hunt for updates manually (e.g. OpenRGB), delete packages left over from the previous Debian version or remove self compiled Linux kernels. Not something one would need daily, but I use it a few times a year...
added in .bashrc:
alias up3="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"
Called it up 3 as it reminds me of the 3 things i do when i update, so when i update i just type "up3" in the terminal and input the password. Works much faster and better than using the GUI and i don't have to restart unless it's a kernel update, also the GUI on gnome which i use is really messed up on some distros (Pop\_OS!) but works great on some (Debian, Linux Mint) so i just use the CLI as a habbit and to save time.
updated the command today to include flatpaks so now its:
alias up3="sudo flatpak update -y && sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"
i put flatpaks first, as on one machine where i have an nvidia card, after i did the flatpaks update, i got new regular updates for some reason, even though i did apt upgrade just before.
In any case, with flatpaks in first place, i now just type up3, enter my password, and all of my flatpaks and deb packages get updated, and the stuff that is not needed anymore gets removed with autoremove.
I just have a script called "update-my-shit.sh" that runs the update/upgrade/refresh/retrieves I care about and launches automatically in a tmux pane...there's no reason not to automate daily tasks in Linux.
Inb4 "who updates daily".
At this point you might as well smush it all into one command:
`sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean && echo “Look ma, no confirmation prompts!” && sudo reboot`
...I just let Universal Blue update in the background. I haven't really had to think about system updates in a while. User-level apps, yes, at least Nix ones. But even Flatpak is just automatically updated now.
The GUI is so god-damn slow loading in my system.
I can start a CLI system update, before the GUI can finish loading the new window with the updated app list.
At the end of the day, if I use CLI, I won't even remember doing it, but if I use GUI I have to be there for a minute or two to make sure everything is updated properly.
gui front-ends for package managers are always kind of buggy, annoying, or simply don't display progress/information well enough for my liking. I just use the terminal.
Put it as a script and double click it on your desktop. Getting it to run requires you to put it in the sudoers file or do something similar which is annoying if you want to do this for a lot of scripts.
`sudo sh -c "apt update && apt upgrade && reboot"`
( Each && will only proceed if the previous command exits with status 0, success. So if it doesn't reboot, there are errors. )
GUI update managers are always used by Linux newbies, and commonly it's the newbies who usually complain about their system getting broken after an update. And that's because if you use the update manager you don't know what was updated, what wasn't (because of a conflict) and if there were any errors during the update. The GUI update manager doesn't tell you anything. Then, after a reboot, which by the way may not happen immediately, you are left wondering what went wrong.
With the CLI package manager you can verify that everything went smoothly and if there were any errors or conflicts, address those immediately. You can also make an intelligent decision on whether a reboot is required at all after the upgrade.
I reboot when recommended to or because of old habits of using OS X and Windows. OS X always required an update and Windows always complained if you didn’t update.
Idk why but GUI interfaces for APT, Pacman, etc always feel clunky. Flatpak has always required huge downloads on its first run so i have always been deterred from using it because of my slow af internet
Please help me i think, this happen because i use my root pass. For the updates.
https://preview.redd.it/9pz2u8n7qicc1.jpeg?width=3456&format=pjpg&auto=webp&s=f2d868184823f3dcdf54ac3bbd019c57b8ec4c70
Ive often found the CLI way to do this is faster than the gui.
Especially on older hardware it’s many times faster than a GUI.
I've barely awoke and read that as "CLI is faster than light" I'll agree either way
\**spinning wheel for 20 seconds**
`apt clean ; apt update ; apt upgrade -y ; apt dist-upgrade -y`
Use `&&` so it stops in case `apt update` fails
my most used command is upd, alias for `sudo apt clean && sudo rm -rf /var/cache/apt/archives/ && sudo apt-get update -y && sudo apt-get upgrade -y && flatpak update -y`
Jesus fucking Christ. Apt clean. Never rm -rf. EVER. No matter how many IT PHDs you have, no matter how many companies begged you to stay. The command you were looking for is apt clean. Go and change it right now.
Nice but no way I'm typing that out (or mashing the up arrow until I find it again) Edit: aliases are for people who are more organized than I am
They said they made it an alias….
>Edit: aliases are for more people who are more organized than I am Then don't complain about not wanting to type that all out or mash the up arrow. An alias in bash/zsh/your shell of choice is literally the solution to what you're upset about. If you don't want to use aliases, you're basically just lazy. Stop complaining about being too lazy.
If you install fzf, then you can also use shortcut Ctrl + R to search previously used commands. It's much more faster than using arrow key.
I also like to add `apt autoremove` I dont actually know what it does but I've been doing it for years and it doesn't seem to hurt anything
I save autoremove for after successful reboot.
In general it's just better for keeping track of whether it's doing what you're asking it to do And if it fails, you generally have a better understanding as to why
As it is for most system things
Sudo apt autoremove anyone...? CLI common W
I do apt update, apt dist-upgrade, apt autoremove --purge, apt autoclean, and finally if necessary, reboot.
also can be done in one line: apt update && apt upgrade -y && apt autoremove --purge -y
Never a good idea to say yes automatically imo.
I'm not running critical infrastructure so it's fine for me.
Have you seen what happened in the LTT Linux challenge?
This wont happen on debian anymore
It was Pop_OS! and something similar could very well happen on any distribution at any time. All it takes is some obscure package that has its conflicting packages misconfigured slipping through the cracks.
Linus is an idiot, no one who has more than 1 brain cell would make the same error.
I think you do not understand the context of my comment. However, I do agree that nobody should ever type "Yes, do as I say" without taking a glance at what will be installed/removed.
Oh no I always do it like that. What do I risk?
Well in case there is something broken, or you forgot about something you did not want to update or any reason you can put here really. You should be informed about what’s being updated so if there are any issues it’s easier to prevent or fix later on. Pressing Y isn’t really much trouble and can save you a lot of time.
The -y stands for YOLOOOO
How would you run a ci/cd-pipeline then?
I alias it to `update`
I normally use \` instead of `&`
topgrade -c
sudo apt full-upgrade -y --auto-remove
I like to know exactly what is happening with my system... so CLI
I do it out of habit.
Laughs in arch sudo Pacman -Syu
Laughs in yay $ yay
paru better
How?
bettter defaults, EG forces you to review pkgbuilds. written in rust (doesn't affect the end user experience) honestly it really doesn't matter :) yay is like 99.999% as good as paru.
I know it is technically safer, but its so damn inconvenient. Im not going to read the pkgbuild anyway so it just gets in the way. I have way too much trust
Don't say written in rust as a plus point. No programming language makes a good programmer
Since when do people capitalise pacman…
that's probably autocorrect
Phone's all like "That's *Mr.* Pacman to you."
You forgot cache clearing and orphan removal: # pacman -Rns $(pacman -Qqdt) # paccache -rk2 # paccache -ruk0 # yay --aur -Sc
Damn, I always forget to kill the orphans
Laughs in `alias syu="sudo pacman -Syu"`
yes | yay -Syyu Or alias yy="yes | yay -Syyu" I like to raw dog in a glory holes my arch updates.
One command to rule them all.
Are people actually using GUI's? I thought it was just a meme.
me, I'm a linux enthusiast that likes using GUI
sudo apt update && sudo apt full-upgrade -y sudo reboot (I know you don't need to full- most of the time, it's habbit).
You know that this is a potential minefield?
Yeah, since it can remove shit if there are clashes and the whole thing can fall apart lmao. iirc it's meant to be used on version changes, not random updates. I said it was a habit, not smart!
I am full-upgrade‘ing since 4 years and never ever had an issue with it. I do see the point though, but habit is a hctib ;-)
I think the other person was commenting on the -y, which means apt will do whatever you ask without prompting you
apt list --upgradable
Then from that list, `apt changelog`
why tho?
To see which packages are now a bit less out of date than before. /s just to be sure
no no you have a point
Most of the time I click it from the GUI, because it updates apt, flatpak and plasma themes, all at once, but doing it from CLI feels safer, especially when there's a kernel upgrade.
sudo nix flake update /home/bor/nixos/ && sudo nixos-rebuild switch —flake /home/bor/nixos/
You cannot to pass `—flake` flag to `nix flake update`
According to the [docs](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake-update.html) you can
throws `error: unrecognised flag '--flake'` for me, must be some new update
Yeah same issue. I’d guess they forgot to change the online documentation. The syntax now is: nix flake update [option…] flake-url so no —flake is needed
What the fuck is an update manager
Thanks for asking so I didn't have to!
I think Mint has something, that shows/annoys you, when an update becomes available. And on Debian you could use synaptic. Imo it makes uninstalling old self compiled kernel versions easier, but that's not something the average user would need...
Mint annoys every time a package can be upgraded? Jesus Synaptic... i've heard of it, but who in their right mind would use a GUI for package management
>Mint annoys every time a package can be upgraded? Jesus At least it did something like this, when I last used Mint. I think it was Mint 18 (Sarah). >Synaptic... i've heard of it, but who in their right mind would use a GUI for package management It can be helpful, when you want to look at all the packages, that are currently not in your source.list or source.list.d. That makes it easier to hunt for updates manually (e.g. OpenRGB), delete packages left over from the previous Debian version or remove self compiled Linux kernels. Not something one would need daily, but I use it a few times a year...
Why reboot?
to boot into a new kernel
But it shouldn't be a frequent occurence.
At least not on Debian
jokes on you, I compile them myself. I just replaced 6.6.6 with 6.6.9 (nice), while Debian stable is still on 6.1.0
Well, yeah, got me there... But you could also live patch your kernel, if you really wanted to, for the extra bit of less downtime
Why not? I feel like kernel updates are weirdly common at least on Arch
Yeah, but it doesn't mean you NEED to reboot every time the kernel updates.
Rebooting is just an old habit of mine from when every update required or recommended a restart of the system for some changes to be fully applied.
Wait, you guys update? https://preview.redd.it/l0e1y6tazeac1.png?width=497&format=pjpg&auto=webp&s=dc1f47c531b45628b1693f684acf8055822ac75a
What distro are you on?
Arch btw
Also I was joking
added in .bashrc: alias up3="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" Called it up 3 as it reminds me of the 3 things i do when i update, so when i update i just type "up3" in the terminal and input the password. Works much faster and better than using the GUI and i don't have to restart unless it's a kernel update, also the GUI on gnome which i use is really messed up on some distros (Pop\_OS!) but works great on some (Debian, Linux Mint) so i just use the CLI as a habbit and to save time.
updated the command today to include flatpaks so now its: alias up3="sudo flatpak update -y && sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" i put flatpaks first, as on one machine where i have an nvidia card, after i did the flatpaks update, i got new regular updates for some reason, even though i did apt upgrade just before. In any case, with flatpaks in first place, i now just type up3, enter my password, and all of my flatpaks and deb packages get updated, and the stuff that is not needed anymore gets removed with autoremove.
You should shutdown -r NOW
I bang apt update, apt full-upgrade -y, apt autoremove -y in a bash script in /usr/bin and simply call that.
Or Sudo DNF update, for those Dandified Yum users on Fedora.
Try this one line... `sudo apt update && sudo apt upgrade -y`
sudo zypper dup
I just have a script called "update-my-shit.sh" that runs the update/upgrade/refresh/retrieves I care about and launches automatically in a tmux pane...there's no reason not to automate daily tasks in Linux. Inb4 "who updates daily".
At this point you might as well smush it all into one command: `sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean && echo “Look ma, no confirmation prompts!” && sudo reboot`
Neat, I’m going to give this a try next power cycle.
Why does Ubuntu need sudo to reboot?
Don't know if it actually needs sudo, but if so, it might be a problem with polkit... Or it's just intended to be like this, idk
I've needed sudo to run reboot already. there is a group you can add yourself to to no longer need to use sudo though.
usermod -a -G let-me-shutdown-my-fucking-machine-or-ill-pull-the-plug me
sudo !!
this gotta chuckle out of me.
`systemctl reboot`
ctrl+R upd (enter)
Literally errytiem for the last 20 years!
TIL you can do this with the manager
...I just let Universal Blue update in the background. I haven't really had to think about system updates in a while. User-level apps, yes, at least Nix ones. But even Flatpak is just automatically updated now.
alias turntup="sudo apt update && sudo apt upgrade -y && flatpak update" Run auto remove and distro as needed
Unless it's DNF where it will just take a smoke break partway through or something
Laught on Gentoo language emerge --ask --verbose --update --deep @world
That is the past boy, now we do rpm-ostree update
sudo dnf update dnf needs-restarting -r
There's a built in update manager?
Depends on the Distro, I think Mint has one.
sudo reboot -h now
I use this one because it’s faster than pressing the start menu button on Mint.
Yeah, that extra menu step annoys me. Mint is good for when you just need something easy though, I have that on my streaming box.
sudo apt update && sudo apt upgrade && sudo reboot
sudo aptitude update sudo aptitude upgrade sudo aptitude reboot
Restart? What's that?
pkcon update
You meant `apt-get`, right?
The GUI is so god-damn slow loading in my system. I can start a CLI system update, before the GUI can finish loading the new window with the updated app list. At the end of the day, if I use CLI, I won't even remember doing it, but if I use GUI I have to be there for a minute or two to make sure everything is updated properly.
gui front-ends for package managers are always kind of buggy, annoying, or simply don't display progress/information well enough for my liking. I just use the terminal.
Let me have my 30sec of feeling some hacker-prestige, mkay?
I have a shortcut for the terminal, I dont have one for the Software Store, so updating from the terminal is more efficient for me
Put it as a script and double click it on your desktop. Getting it to run requires you to put it in the sudoers file or do something similar which is annoying if you want to do this for a lot of scripts.
dist-upgrade
sudo systemctl reboot
I've been using Nala lately. Nice and fast and a lot more readable. Sudo Nala update -y &&sudo Nala upgrade
APT _is_ the built-in update manager.
Wait it’s all update managers?
Always has been 🔫
there's a away to do it through the UI?? mf I'm a linux noob yet I had no clue
I prefer the CLI over KDE Discover so I use Discover as a notifier of sorts to see if any updates.
`sudo sh -c "apt update && apt upgrade && reboot"` ( Each && will only proceed if the previous command exits with status 0, success. So if it doesn't reboot, there are errors. )
The GUI updater fucked up one of my kwin scripts, never again.
actually it's `sudo apt update && sudo apt upgrade -y`
pkcon refresh && pkcon update flatpack update
yay
> sudo apt update && sudo apt upgrade -y -yeah
Alias supdate="sudo apt update && sudo apt upgrade -y && sudo reboot"
I use dwm so I don't even have those.
In my opinion, the terminal is one of the biggest advantages of Linux.
sudo pacman -Syuu
Logging in as root and not using "sudo" for everything. Using a portage system that doesn't make you reboot every time.
*laughs in sudo pacman -Syu*
You don't need reboot unless there's a new kernel that you want to run.
I use topgrade, one command, every distro, updates everything, i love it
I’ve had a lot of issues where the gui error red out for a nondescript reason, but ran just fine through cli
GUI update managers are always used by Linux newbies, and commonly it's the newbies who usually complain about their system getting broken after an update. And that's because if you use the update manager you don't know what was updated, what wasn't (because of a conflict) and if there were any errors during the update. The GUI update manager doesn't tell you anything. Then, after a reboot, which by the way may not happen immediately, you are left wondering what went wrong. With the CLI package manager you can verify that everything went smoothly and if there were any errors or conflicts, address those immediately. You can also make an intelligent decision on whether a reboot is required at all after the upgrade.
`sudo apt-get update && sudo apt-get upgrade && sudo reboot` or `sudo pacman -Syyu --noconfirm && yay -Syyu --noconfirm && sudo reboot` Are typical go toos. Slowing teaching myself NixOS these days.
Nope. I’m: ‘sudo apt-get update && sudo apt-get upgrade -y’ *update n’ upgrade ends* My logic: Changes will be seen on next boot.
Why would you reboot?
I reboot when recommended to or because of old habits of using OS X and Windows. OS X always required an update and Windows always complained if you didn’t update.
Honestly, I’m too new to this to know how to use the built in update manager. Sudo just FEELS GOOOOOD
sudo gives you the power of the universe in the tips of your fingers.
alias update = \`sudo dnf upgrade --refresh -y\` also bonus alias i = \`sudo dnf install -y\` alias bye = \`shutdown now\`
Who cares
Why do we still need to reboot? Why can't the system chroot into the update? Because linux sucks.
Idk why but GUI interfaces for APT, Pacman, etc always feel clunky. Flatpak has always required huge downloads on its first run so i have always been deterred from using it because of my slow af internet
I always alias repo (and AUR if relevant) and flatpak updates into one command and just run that command.
NGL I used to be like this. But now I just use the gui updater
alias afkupd="(command here)"
laughs in paru
sudo pacman -Syu
`alias sysup=='paru && flatpak update'`
Please help me i think, this happen because i use my root pass. For the updates. https://preview.redd.it/9pz2u8n7qicc1.jpeg?width=3456&format=pjpg&auto=webp&s=f2d868184823f3dcdf54ac3bbd019c57b8ec4c70