this post was submitted on 17 Sep 2023
270 points (80.7% liked)

Linux

48332 readers
673 users here now

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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

A few years ago we were able to upgrade everything (OS and Apps) using a single command. I remember this was something we boasted about when talking to Windows and Mac fans. It was such an amazing feature. Something that users of proprietary systems hadn't even heard about. We had this on desktops before things like Apple's App Store and Play Store were a thing.

We can no longer do that thanks to Flatpaks and Snaps as well as AppImages.

Recently i upgraded my Fedora system. I few days later i found out i was runnig some older apps since they were Flatpaks (i had completely forgotten how I installed bitwarden for instance.)

Do you miss the old system too?

Is it possible to bring back that experience? A unified, reliable CLI solution to make sure EVERYTHING is up to date?

(page 4) 50 comments
sorted by: hot top controversial new old
[–] page@discuss.online 3 points 1 year ago

100% agree with you OP.

[–] zacher_glachl@lemmy.world 3 points 1 year ago* (last edited 1 year ago) (3 children)

No need to overcomplicate things, just write a small shell script or even just an alias. I use this daily:

alias get-rekt="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && flatpak update -y && flatpak remove --unused --delete-data -y"

adjust accordingly for Fedora and/or snaps. Obviously doesn't work for appimages or manually compiled stuff which should be a last resort if there's no other sensible way to install stuff.

edit: voyager shat the bed with the code block but you get the point

load more comments (3 replies)
[–] Lober@lemmy.dbzer0.com 3 points 1 year ago

To still sorta replicate that, I just set up a script at /usr/local/bin/update for it:

#!/usr/bin/env bash

sudo emaint sync -a &&
sudo emerge -utDU @world &&
sudo emerge -c;
flatpak --user update;
doom upgrade &&
doom sync &&
doom purge
[–] MigratingtoLemmy@lemmy.world 3 points 1 year ago

I use very minimal software and usually don't care about Flatpak

[–] stewie3128@lemmy.world 3 points 1 year ago (2 children)

emerge -uDN @world

...and head to bed for me.

load more comments (2 replies)
[–] Frederic@beehaw.org 3 points 1 year ago

I'm using MX Linux and don't use any flatpak or snaps, only good old debs

[–] itsralC@lemm.ee 3 points 1 year ago

I use fedora as well and I just update through the GUI. It's more stable that way and waiting until I turn off my computer for them to apply is not a big deal.

[–] rsolva@lemmy.world 3 points 1 year ago

Fedora updates flatpaks automatically, system updates too, but you need to reboot. Which Fedora version do you use?

[–] archy@lemmy.world 3 points 1 year ago

I use one command to upgrade the whole system: paru one one system and yay on the other laptop.

[–] RIotingPacifist@lemmy.world 3 points 1 year ago

flatpaks are all updated at once, just like distro packages, so yeah you might need to commands, but that's still very different to having each application update itself (and the security hell implied by that)

Also I think pkcon can manage your updates across various backends (unless you are on Arch, where I think there are both technical & ideological objections to having a simple tool that just works)

[–] TrivialBetaState@sopuli.xyz 2 points 1 year ago (1 children)

I know that a lot of people share the same thoughts with you but I respectfully disagree. If you want your system to be updated only with your apt/yum/dnf program, then just don't install anything useing snap/flatpak/etc. Sure, you will not have all the apps available in the repos, which was also the case in the past before these systems. Back then, your only option was to compile from source, which was more work-intensive than flatpaks/appimages/snaps. And updating was also much more complicated. Therefore, unless you wanted something really special, you'd stick to your repos. Flatpaks allow developers to distribute their software (and users to install it) in a less labour-intensive manner for the developer. Compiling and testing your app for Debian, Fedora, Arch, SuSE, MX-Linux, Linux Mint, Linux Mint DE, Gentoo, and all the other popular distros is an impossible task for small developers. Flatpaks was a godsend for them and for the users who don't want to compile from source. Now, you can argue that we shouldn't have all these systems (flatpak, snap, appimage, docker, etc...) but one would be OK. And again I will disagree. One of the most important aspects of FOSS is diversity. Embrace it even with its drawbacks. It would require a much longer post to explain this and others have done it already better than I would.

[–] mfat@lemdro.id 2 points 1 year ago (1 children)

The official software manager on my Fedora system (Discover) presents me with Flatpaks. If I use Discover for updating ,the Flatpaks will update too. But when I use the official CLI tool to upgrade the system only RPM packages are updated. The other package managers on the system are not affected (Flatpaks, Snap, Cargo, PIP). I think there should be no discrepancy between CLI and GUI interfaces for system updates. The fact that I should "remember" how to update stuff shows that something is wrong or is not perfect.

[–] TrivialBetaState@sopuli.xyz 2 points 1 year ago

You have a point here indeed. But it is much easier to create a CLI tool that combines the updates of all systems rather than destroying the incredible things that flatpak and pip offer. A five-line bach script would do. Although, a reliable distro would probably want to rely on something much more elegant and harder to break. For Fedora specifically, the python-based dnf tool should be straightforward to be extended to do that. Perhaps the Debian apt tool has a lot of functionality to carry on and may be harder to do. In the essence of unix philosophy and modular approach, it should be a separate tool. I'm looking forward to that too.

[–] FQQD@feddit.de 2 points 1 year ago (1 children)

🎶That's why i don't like and use flatpaks, snaps and appimages 🎶

load more comments (1 replies)
[–] sgtnasty@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

I use Fedora for work, but ArchLinux at home. If you really want to skip flatpak then you need the AUR.

[–] jyte@lemmy.world 2 points 1 year ago

Snap forces updates, and you cannot disable them. So if you use snaps, I guess you can stop worrying and keep going with your usual apt routine.

[–] nightwatch_admin@feddit.nl 2 points 1 year ago

If you want a single command, consider topgrade. Not sure if it supports Flatpak and Snaps yet, as I do not use those (yet).

[–] art@lemmy.world 2 points 1 year ago

It's wild what can be done with some clever aliases. Linux is better now than ever before.

[–] Presi300@lemmy.world 2 points 1 year ago

Nah, I don't miss them really, flatpaks are much more convenient and for me fedora kinda just updates itself automatically.

Also, pretty much all graphical app stores on linux support flatpaks and the distro's default package manager, so you can update everything from there...

[–] PoisonedPrisonPanda@discuss.tchncs.de 2 points 1 year ago* (last edited 1 year ago)

I think a script with apt/pacman/dnf etc., flatpak update can do the job as well?

IMO its against the unix vision to extend apt to manage flatpak as well.

I use BAUH as a GUI "update everything in one click" does repos, aur, flatpak, snaps, appimages. Paru is CLI option for repo, aur and flatpak. I dunno if it does snaps never checked.

[–] flashgnash@lemm.ee 2 points 1 year ago

I get 99% of my packages via nix and the other 1% through appimages which I can put anywhere I like on my disk

load more comments
view more: ‹ prev next ›