this post was submitted on 23 Jun 2025
64 points (97.1% liked)
Linux
8038 readers
999 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
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
This is dumb lol but
Exchange apt for whatever package manager you use, optionally add "&& flatpak upgrade". If you really want to live on the edge throw a -y in there as well
Mine is a bit longer and includes automatically removing unused dependencies:
alias update='sudo apt update && sudo apt upgrade && flatpak update && sudo apt autoremove --purge && flatpak remove --unused --delete-data && notify-send '\''update done'\'''
I just end mine with "&& exit"
I have a similar one as well for debian-based operating systems...
To get this to work without a password, i dropped a file in /etc/sudoers.d that allows anyone in the sudo group to sudo apt without a password.
root@tux:~# cat /etc/sudoers.d/apt