nix flake update && sudo nixod-rebuild switch
#!/usr/bin/env bash
systemctl --failed -q
yay -Pw
sudo reflector --save /etc/pacman.d/mirrorlist -c de -p "https" --ipv6 --completion-percent 100 -l 10 --sort age
yay -Syu
pacman -Qqnte > ~/.local/share/applications/pkglist.txt
pacman -Qqdtt > ~/.local/share/applications/optdeplist.txt
pacman -Qqem > ~/.local/share/applications/foreignpkglist.txt
yay -Sc > /dev/null
pacman -Qtd
pacman -Qm
sudo find /etc -name *.pac*
Thanks for posting. But isn't this a bit too much for every time you update your system? Like rebuilding the mirrolist each time?
I update about once every 2 months.
So I basically put everything related to updates from https://wiki.archlinux.org/title/System_maintenance into my script.
Wow that is probably the longest update cycle I ever heard of any Arch user. :D Nothing wrong with it, its just unusual.
Arch is the most stable OS (as in, doesn't break) in my experience, as long as you maintain it.
I don't use an alias, as the command to update is pretty small to begin with.
doas apk -iU upgrade
I actually just run the update commands individually when I feel like.
su -l 'pacman -Syu' # All regular packages
pakku -Syu # All AUR packages (I know this updates regular packages, too.)
flatpak-update # Update Flatpak packages with a function I wrote
Since I do not trust Flatpak (especially when it comes to driver updates and properly removing unused crap) I once created this monstrosity.
flatpak-update () {
LATEST_NVIDIA=$(flatpak list | grep "GL.nvidia" | cut -f2 | cut -d '.' -f5)
flatpak update
flatpak remove --unused --delete-data
flatpak list | grep org.freedesktop.Platform.GL32.nvidia- | cut -f2 | grep -v "$LATEST_NVIDIA" | xargs -o flatpak uninstall
flatpak repair
flatpak update
}
The initial problem with Flatpak thinking it would be a good idea to add dozens of Nvidia drivers and re-download and update all of them on every update (causing a few gigabytes of downloaded files on every run of a normal flatpak update
even if nothing needed to be updated) is reportedly fixed, but I just got used to my command.
The initial problem with Flatpak thinking it would be a good idea to add dozens of Nvidia drivers and re-download and update all of them on every update (causing a few gigabytes of downloaded files on every run of a normal flatpak update even if nothing needed to be updated)
100% agree! Up until last year I was also using Nvidia and the Flatpak drivers for Nvidia got out of hand. I was using just a handful of applications in Flatpak, yet I had 6 different versions of the driver, each 350 MB and every of them was downloaded fully and updated every time. And that is besides other updates and other stuff. I would have needed your function so badly back then. :D
I made a shell script titled "update", it updates system packages, flatpaks and python packages. Too many lines for an alias for my tastes.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0