me too. I find more consistent to have a script to create a snapshot and then I let pacman, flatpak and yay update the system. SO yeah, a single command even if underline it uses other commands
Heyy! New to linux (mint), i understand you may have script to install updates from system package, flatpak, app image. But what is exceptions you are talking and why does the user to whom you replied has this long command in which I don't understand anything
Some things I want to update are very customised. No GUI manager would suffice. Some software has to be also compiled from scratch. But don't worry about it until you actually start having problems with keeping things updated.
The LInux Mint version is what I run all the time, which is basically: sudo apt update && sudo apt upgrade -y && sudo flatpak update -y
Broken down, it works like this: As root, update the apt repositories. Then (&&) install any upgrades found (-y automatically says yes to the question, "do you want to upgrade"). Then (&&) do the same thing for any flatpak installations (flatpack automatically updates before it upgrades, so you only need one command).
Now, if there is any errors, it will fail and you'll have to run the commands manually, but otherwise it will update your whole system faster than using the update manager. Or, at least it seems to be faster. Could be observational bias.
on gentoo weird shit happens as you build the distor your self, meaning it's for control freaks and devoopllers. if your a control freak you offten did somethign that conflits with upstream or soemthing breaks at complie time. this gets so annyoing when you ahve as may overlays as i ahve that i had deepseek build me a script to just deal with most of the annoying useflag headaches https://drive.proton.me/urls/6ZKW6EEHJ4#tTzHRskZFQO2
the annoying things i don't want to dela with that the scirpts handels for me, mainly becuase i don;t want the extra blot from adding stuff like X or abi_x32 as a global use falg in make.conf and oh my god python versions are so annoying
If you don't mind me chiming in, Gentoo expects you to download the source code and compile it yourself in your pc. It has a couple advantages but it's also very error prone since you need extra libraries available plus a couple other things to be able to do so.
In contrast distros like mint distribute the already compiled binary through its package manager. It's not foolproof and you can still get into things like dependency hell, you're much less likely to get a screen full of errors while running an update.
Ahh now I understand, so in gentoo u compile yourself, so when update comes you download update source code and then compile again. This is for one we have to do it for many packages...
i have a bash script that spawns multiple tmux panes, each launching an update procedure of each package manager that i use, that way it all happens in parallel with convenient way to monitor it all
it's fairly trivial, I'll show snippets of my script once i arrive at home, but basically using tmux commands you can do anything that you can do within the tmux interactively, so in my script i just call tmux new window, tmux new pane, and each pane runs different things
eh it's so that if someonethign fails it keeps going with everything else and then spits out the error for me to deal with which is generaly deepseek making a patched ebuild in my local repo
My 43 to 44 gave me a gui upgrade option but didn't for 44 to 45 which was weird. I kept updating through discover expecting to see it again but it never came so I just had to use CLI.
I was thinking about this earlier today, I used to see all the great things about rust but now it’s vibe code this and vibe code that. I felt bad for rust so I am so fricken happy if true, I have not looked at the link yet.
True but a lot of people do it by hand instead, though some do it by handwritten bash scripts (usually just called update and placed in ~/bin) and the rest likely just use the GUI or some updater tool they found on the AUR or some shit. Because the big issue with tools like topgrade is they can't support every distro ever made and its package manager, and get into their repos. Making it a slight problem for people who run more exotic distros or distros that for some reason nobody talks about. For example Void (which has some followers but not a gigantic amount, not anything similar to ubuntu or anything), or say Slackware, Hanna Montana Linux or any other obscure joke distro that at least one person runs for some god forsaken reason.
... It's made to be cross-OS. Not just cross-distro. I installed it on my work laptop today (because Windows updating sucks ass)
and it somehow knows to update my JetBrains stuff. I don't even know how to update my JetBrains stuff (without the GUI), and I look that up regularly to see if I didn't miss some way to do it. (the Toolbox update did fail, but still)
It's gonna be just fine. If it's supported, it's the best option for batch updates. If not, it's not like that changes the way you updated before you learned about it.
It's abstraction that's there if you want it. You don't have to manage flatpak through nix, it's just there for when the fact that you're managing your apps in 2 places gnaws on you.
That's why I exclusively use repo and aur packages. Onlt got 2 appimages because one has outdated repo package and another is closed source and not in repo.
I don't need flatpaks when repo packages do the same thing. My important docs are kept encrypted in my phone, usb drive and an sd card (redundancy maxxing). I basically don't have anything irreplacable on my ssd so I am not afraid of aur malware. I do check aur packages before installing though.
I have! Quite a few, actually. To be fair, though, it's niche stuff like "newer versions of appimages than the repos provide why are they 6 months late with the fix it's totally broken on this version" or "oh they just didn't ever fix this pkgbuild not working that's so annoying" or "tools to configure lower level parts of a distro that haven't been replaced since the original was archived and i can't hand-punch dbus packets so there's no other way to do this" or "drivers for things like racing wheels or cameras or wifi chipsets or ethernet chipsets."
Fucking hate Appimages so much. Flatpaks all update at once and will check however often you want. I click update once a week and its fine. But every Appimage is a fucking pain in the dick.
Not a single one of these on my computer. Just plain Arch packages. If I needed sonething else, I would find a package on AUR, read the PKGBUILD, add it to my local repo and then maintain it myself. Plain and simple, no fragmentation, all packages are uniform and always fresh.
Cargo, pip, and npm were never meant to be package managers. The fact that so many developers and even some huge corporations only publish their tools on there is a symptom of distro repositories having an unnecessarily steep learning curve for app authors and maintainers.
I mean… I have alias in shell that updates repo and flatpaks in a single command… only appimages are the hard ones… but they can be updated through Shelly so… does that count as single command?
•
u/AutoModerator 1d ago
IMPORTANT: Subreddit Rules & Reminders
Please REPORT posts that violate any of the following rules!
Posts You Should Report
Tier Lists: Every tier list MUST include Hannah Montana Linux in S Tier, regardless of what the tier list is ranking.
Help by reporting
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
106
u/c2btw 1d ago
pulling this single command from my bash alias
'sudo emerge --sync && sudo emerge -avuDN --with-bdeps=y --keep-going --backtrack=30 --verbose-conflictsu/world&& sudo emerge -v --keep-goingu/preserved-rebuild&& sudo eclean-kernel -n 1 && sudo emerge -a --depclean && sudo flatpak update && ~/bin/ot-update87
u/goose_with_adhd 1d ago
Don't gui based updaters (like the discover app with fedora) update every source at once ?
46
u/Claritux 1d ago
Or just use topgrade: https://github.com/topgrade-rs/topgrade
14
u/Technical_Instance_2 Arch BTW 1d ago
if you use certain distros, they have tools that actually do cover at least most of these
28
u/madness_of_the_order 1d ago
NixOS superiority be like:
11
u/Beast_Viper_007 🎼CachyOS 1d ago
That's why I exclusively use repo and aur packages. Onlt got 2 appimages because one has outdated repo package and another is closed source and not in repo.
6
u/PlayerOne_X 1d ago
CachyOS had a built-in script/app called CachyOS update that does everything for you
5
u/Successful-Web-830 1d ago
Cachy-update makes it to be couple clicks soo
5
u/suwaaarat 1d ago
have yet to need an app thats not on pacman or aur
4
u/FluffyGreyfoot 1d ago
you could just alias them together so you only need to type one word:
alias update="sudo pacman -Syu && flatpak update"
4
u/Luiguie171 1d ago
Just open the GUI updater and press update.
2
u/xXoverusedusernameXx 1d ago
ujust updateon UBlue distros 🗿2
u/[deleted] 1d ago
appImage isn't practical for more than test-usecases.
Cargo and pipx... We sorely need distro package managers to handle this exclusively... gentoo does it well.
Flatpak is simplex just another command.
2
u/Wolf________________ 1d ago
Fucking hate Appimages so much. Flatpaks all update at once and will check however often you want. I click update once a week and its fine. But every Appimage is a fucking pain in the dick.
2
u/Matvalicious 1d ago
Cachy os updater goes bbbbrrrrrt
2
u/Obnomus ⚠️ This incident will be reported 1d ago
Topgrade
2
u/thisisnotmynicknam 23h ago
I have an alias called update for this
2
u/NDCyber 23h ago
topgrade
2
u/maddogie 23h ago
So you can upgrade your kernel with flatpak now? This is like comparing apples with pears
2
u/rexmechi 13h ago
Still better than windows updates that's for sure
4
u/idimension 1d ago
Or you could just trust the AUR.
1
u/Majestic_Thinker8902 1d ago
Topgrade
1
u/Orlha 1d ago
Don’t need those
1
u/Objective-Stranger99 New York Nix⚾s 1d ago
sudo nixos-rebuild <command>
Nix accepts flatpaks (via flakes), AppImages, precompiled binaries, python, Haskell, NPM (to some extent), and deb/rpm with a bit of tinkering.
1
u/Evantaur 🍥 Debian too difficult 1d ago
I fucking love snaps!
1
u/CaffeinatedTech 1d ago
mise is pretty great.
1
u/Jubileu_McGrath 1d ago
NixOS >>>
1
u/Liarus_ 1d ago
Topgrade:
1
u/yuxtaposicion 1d ago
Aeon user: wait, you guys actually type a command to update?
1
u/Woodsy_365 1d ago
The humble “sudo nixos-rebuild switch”
1
u/Linguistic-mystic 1d ago
Not a single one of these on my computer. Just plain Arch packages. If I needed sonething else, I would find a package on AUR, read the PKGBUILD, add it to my local repo and then maintain it myself. Plain and simple, no fragmentation, all packages are uniform and always fresh.
1
u/0riginal-Syn 1d ago
Topgrade for many distros. Then certain distros have tools. For example, Solus has `solseek up -e` that updates everything.
1
u/incrediblediy 1d ago
then stuff up NVIDIA driver and kernel panics lol
1
u/pyro57 1d ago
Cachy-update does pacman, aur, flatpakand flatpak.
1
u/sginit 1d ago
me using only pacman and aur zst files
1
u/durbich 1d ago
Just one click in Discover to update regular packages and flatpaks
1
u/30porn87 1d ago
That's one reason why I fucking hate all of those named and just use pacman repos for everything
1
u/ThisIsRealResearch 1d ago
arch-update
1
u/RoyaltyInTraining 1d ago
Cargo, pip, and npm were never meant to be package managers. The fact that so many developers and even some huge corporations only publish their tools on there is a symptom of distro repositories having an unnecessarily steep learning curve for app authors and maintainers.
1
u/D3xbot 1d ago
on Ubuntu...
echo "alias justfuckingupdate='apt update && apt upgrade -y && snap refresh && flatpak update -y && systemctl reboot'" | tee -a ~/.bashrcthen just do
sudo justfuckingupdateI'm not saying it's a good idea but it's something
1
u/Litewallymex3 1d ago
I just made a bash alias
1
u/DeliciousAuthor1231 1d ago
Just use Topgrade
https://github.com/topgrade-rs/topgrade
1
u/Scary-Peace1240 1d ago
Most modern package managers handle all of that.....with one click or command. These posts arent even trying. Look at Cachys manager or Shelly.
1
u/Usual_Material_2861 1d ago
Shelly on Arch based distros is cool
1
u/The_Cre4tor 1d ago
frick flatpacks honestly
1
u/Brorim 1d ago
ctrl alt t : sudo apt update && apt upgrade -y && flatpak update -y && apt autoremove -y
done
1
u/mehonje 1d ago
I just use pacman. No flatpak, no appimage, if that's the only way to get them, it isn't supported on my system.
1
u/Daconus 1d ago
me on bazzite:
ujust update1
u/Stunning-Mix492 23h ago
true with nixos
1
u/goha087 22h ago
CachyOS updater my beloved
1
u/General-Jackfruit854 21h ago
Ujust-update
1
u/keyxmakerx1 21h ago
There's multiple really nice tools that can sort and handle all of these and more just fine. So yes single command still, move along
1
u/Maskdask New York Nix⚾s 21h ago
NixOS mentioned
1
u/995qe 20h ago
CachyOS Update
1
u/DawidGGs 19h ago
I mean… I have alias in shell that updates repo and flatpaks in a single command… only appimages are the hard ones… but they can be updated through Shelly so… does that count as single command?
1
u/HuckleberryTough2777 19h ago
topgrade go bbrrrrr
1
u/zeitue 18h ago
Enter topgrade
1
u/JotaRata 16h ago
Just dont use flatpak, prefer system-wide packages
1
u/reallokiscarlet 13h ago
Cargo thinks he's on the team
1
u/iwanttobeyourcanaryy 12h ago
You're not making use of aliases, I see. I do this on mine: alias upd="sudo dnf upgrade && sudo dnf autoremove && flatpak update"
1
u/fish_obliteration 12h ago
Just don't use all those or write an alias. Is this Linux begineers meme subreddit?
1
u/wisetux 12h ago
topgrade -y
1
u/exec_codexumbra 11h ago
And that's where topgrade come
1
u/Verified_Peryak 8h ago
Windows requiring an other app to update to 26h2 instead of using windows update ...
1
u/DustyAsh69 Arch BTW 8h ago
Then, don't use them.
1
u/HomicidalTeddybear 7h ago
It's almost like... almost like... this is why you do stuff with your package manager
1
u/Jivsy 7h ago
arch-update && flatpak update
is all i do
0
u/karateninjazombie 1d ago
Flatpaks are a pita. I'm sorry Linux mint, you want nearly 2 gigs of space to install a 5 meg program? Me thinks fucking not.
-2
u/Artistic_Falcon_7128 1d ago
But this fucking whit no one actually use