this post was submitted on 17 Sep 2023
255 points (100.0% liked)

Linux

1259 readers
104 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?

top 50 comments
sorted by: hot top controversial new old
[–] ryannathans@lemmy.fmhy.net 135 points 1 year ago (7 children)

Alias update="sudo apt full-upgrade && flatpak update"

Fixed it for you

[–] bitteorca@artemis.camp 27 points 1 year ago

Since they’re using Fedora apt isn’t going to do anything, they would need to run sudo dnf upgrade -y && flatpak update

load more comments (6 replies)
[–] cmnybo@discuss.tchncs.de 85 points 1 year ago (5 children)

There has always been the option of installing software from source. The package manager won't update anything installed from source.

You don't have to use Flatpak, Snap or AppImage if you don't want to. If you use the package manager to install everything, it will update everything.

[–] BCsven@lemmy.ca 22 points 1 year ago (2 children)

Except doesn't ubumtu now force a snap on you even if you try installing a package app?

load more comments (2 replies)
[–] mfat@lemdro.id 9 points 1 year ago (2 children)

If I use ubuntu I'm somehow forced to use them.

Even on Fedora the average user is presented with many flatpak results when they use the GUI software manager. Not everyone is technically adept enough to check the origin of the app. So it's kind of being forced on users.

load more comments (2 replies)
load more comments (3 replies)
[–] Diplomjodler@feddit.de 45 points 1 year ago (2 children)

In Mint you can install flatpaks from the software manager and those get updated by the update manager. So it's all still one click.

load more comments (2 replies)
[–] jannis@feddit.de 44 points 1 year ago (9 children)

If you use a graphical tool like gnome software, it will update everything with one click on a button

[–] mwguy@infosec.pub 16 points 1 year ago (2 children)

And sometimes it will even work!

load more comments (2 replies)
load more comments (8 replies)
[–] Endorkend@kbin.social 37 points 1 year ago (2 children)

Don't generalize whatever distro you're running as "Linux", especially when we're talking package management.

load more comments (2 replies)
[–] fishr@lemmy.ml 34 points 1 year ago (1 children)

IMHO the killer feature of linux is that you aren't getting shit straight into your mouth every day by some corporation that decices to squeeze more cash money out of you.

And as others have pointed out most gui applications update all sources automatically.

load more comments (1 replies)
[–] Limitless_screaming@kbin.social 30 points 1 year ago* (last edited 1 year ago)

alias update='sudo pacman -Syu && flatpak update' or just use one of the trillion GUI app stores like pamac, discover, or gnome's thing whatever they call it.

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

alias upgrade="sudo pacman -Syu && yay -Syu && sudo flatpak upgrade"

load more comments (2 replies)
[–] darq@kbin.social 26 points 1 year ago (2 children)

I can't really relate? At least on my desktop. The software manager integrates with Flatpaks and upgrades them at the same time.

For most apps I'm going to prefer the usual way of doing things. But there are some apps that I actually kinda prefer as Flatpaks. Like Calibre I'm happy to install as a Flatpak. The updates are faster and it doesn't add a whole host of dependencies that only it uses to my system.

load more comments (2 replies)
[–] gamer@lemm.ee 23 points 1 year ago (2 children)
#! /bin/sh
#update_everything_in_one_command.sh
set -e
apt update
apt upgrade -y
flatpak update -y

$ sudo update_everything_in_one_command

Tada!

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

Silverblue here with automatic updates enabled, I do not care anymore, it just works.

load more comments (2 replies)
[–] danielton@lemmy.frozeninferno.xyz 22 points 1 year ago (1 children)

Depends. Unless you're on Ubuntu or Elementary, Flatpak and Snap are optional. When I'm on Arch, btw, I don't bother with any of those and just use the AUR with a helper like yay.

But I find the convenience of Flathub too good to pass up on other distros. I have been using Linux long enough to remember when the only options if your distro didn't ship something were to compile from source or to use a sketchy installer script, because Flatpak didn't exist. And as others mentioned, if you're using a full desktop environment, it likely can update everything at once via the GUI.

load more comments (1 replies)
[–] chris@lemm.ee 22 points 1 year ago

You're using Linux. It took me about an hour to create a script that will upgrade all packages, Snaps, and flatpaks, complete with flavor text. The fact that I could do that, with total control over how and when to run those updates, is still a killer feature to me.

[–] KSPAtlas@sopuli.xyz 21 points 1 year ago (1 children)

GUI interfaces like discover or gnome software will update all

[–] outadoc 9 points 1 year ago (1 children)

Thank god we have these graphical GUI interfaces

[–] bionicjoey@lemmy.ca 17 points 1 year ago (3 children)

Graphical GUI User Interfaces*

load more comments (3 replies)
[–] grean@lemmy.ml 20 points 1 year ago

Every problem can be solved by adding another layer of abstraction.

[–] space@lemmy.dbzer0.com 20 points 1 year ago (3 children)

What I think the biggest problem with the traditional package managers is that (1) they don't isolate packages from each other (when you install a program files are placed in many random places, like /usr/bin, /usr/lib etc) and (2) you can't have multiple versions of the same package installed at the same time.

This creates a lot of work for package maintainers who need to constantly keep packages up to date as dependencies are updated.

Also, because of this, every distro is essentially an insane dependency tree where changing even one small core package could break everything.

Because of this, backwards compatibility on Linux is terrible. If you need to run an older application which depends on older packages, your only choice is to download an older distro.

This is what snap and flatpak try to solve. I think they are not great solutions, because they ended up being an extra package manager next to the traditional package managers. Until we see a distro that uses flatpak or something similar exclusively, the problem is not solved.

[–] bhankas@lemm.ee 12 points 1 year ago (2 children)

What I think the biggest problem with the traditional package managers is that (1) they don’t isolate packages from each other (when you install a program files are placed in many random places, like /usr/bin, /usr/lib etc) and (2) you can’t have multiple versions of the same package installed at the same time.

Would you like to know about our Lord And Savior NixOS?

load more comments (2 replies)
load more comments (2 replies)
[–] namingthingsiseasy@programming.dev 18 points 1 year ago (1 children)

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.

If this actually were Linux's killer feature, then Linux would have had a much higher market share by now.

Make no mistake, this is my favourite feature of Linux as well, and I have never used a snap/flatpack/appimage in my entire life. But it doesn't have the kind of broader public appeal that you seem to be suggesting.

load more comments (1 replies)
[–] atamblingpoder@sopuli.xyz 18 points 1 year ago (2 children)

You can just use Topgrade and it'll update your entire system, including everything from your oh-my-$shell, pip, flatpak, snap etc

load more comments (2 replies)
[–] d3Xt3r@lemmy.nz 17 points 1 year ago* (last edited 1 year ago) (1 children)

I just wrote a script to do all my updates in one go:

sudo dnf upgrade -y --refresh
sudo dnf check
sudo dnf autoremove

flatpak update -y --force-remove
flatpak remove --unused --delete-data -y

pip-review --user --auto --continue-on-fail

cargo install-update -a

sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update
load more comments (1 replies)
[–] Gamey@feddit.de 14 points 1 year ago

The GUIs do that in a even easier way for new users and experienced people can always just add a simple bash alias, a universal command never existed anyway because we have various different package managers on different distros so I don't see any lost feature whatsoever tbh

[–] oo1@kbin.social 13 points 1 year ago

no.
it's open source.

[–] Syudagye@pawb.social 13 points 1 year ago

Well, one way to address this would be to have a little hook that triggers when you do a full system upgrade, and it updates your flatpaks.

also flatpaks are still centralized thanks to flatpak itself, same for snaps, nix, cargo and similar package managers. It's not like you have to update every single app by yourself, like for AppImages and apps on windows or macos for example.

[–] yak@feddit.it 13 points 1 year ago

You can use the great topgrade!

[–] vox@sopuli.xyz 12 points 1 year ago (3 children)

arch repos + aur got you covered

load more comments (3 replies)
[–] h3ndrik@feddit.de 12 points 1 year ago (6 children)

Yes we did. I miss the old system.

Also I don't like my laptop rebooting in my backpack to install updates, after I've tried to shut it down.

load more comments (6 replies)
[–] ReversalHatchery 12 points 1 year ago (1 children)

If your problem is Flatpaks, Snaps and AppImages, just remember that manually installed software can't be updated with the same command either, and installing software manually is fortunately not a new thing.

Here's the solution, though: don't use flatpaks, snaps appimages, instead rely on your outdated distro packages only.
Personally I only use appimages, because I don't want the resource overhead of the other 2

load more comments (1 replies)
[–] brenno@lemmy.brennoflavio.com.br 11 points 1 year ago (1 children)

Nowadays I don't even bother with upgrades anymore. Snaps and Flatpaks auto updates automatically, and for system updates Ubuntu notifies once a week.

For me the experience nowadays is better than before, where app updates are tied to system updates, meaning that older bases (like Ubuntu LTS) got behind on some softwares.

load more comments (1 replies)
[–] happyhippo@feddit.it 11 points 1 year ago

Your single command is just an "&&" away

[–] cyclohexane@lemmy.ml 11 points 1 year ago

I don't use flatpak. But if your distro does, I imagine it should be pretty easy for them to provide a higher level program that updates both types of packages at once. I think this isn't a big problem.

[–] pr06lefs@lemmy.ml 11 points 1 year ago (1 children)

Nixos got this and then some

load more comments (1 replies)
[–] const_void@lemmy.ml 10 points 1 year ago

I'm still updating the whole system with one command. Just avoid flatpaks. Repackage for your distro if you need to.

[–] hottari@lemmy.ml 9 points 1 year ago

You can definitely make an alias for this if all you want is a single command.

PS. I don't think what you describe is a killer feature.

[–] LeFantome@programming.dev 9 points 1 year ago (2 children)

Use a distribution with a large package library that is kept up to date and there is noting to miss.

Ubuntu is starting to push Snaps. So, that is becoming an unavoidable reality for Ubuntu users. For the most part though, Flatpaks remain optional for most distros.

The problem that Flatpaks solve is that the distro provided packages are out-of-date. If they are not, there is no real reason to prefer Flatpak.

load more comments (2 replies)
[–] OsrsNeedsF2P@lemmy.ml 9 points 1 year ago

Dunno about you, when I click Update in Discover, all my stuff updates

[–] immibis@social.immibis.com 9 points 1 year ago

@mfat @linux "We" means Ubuntu. I can still do this.

[–] jherazob 9 points 1 year ago
[–] Nicbudd 9 points 1 year ago

This sucks, but on the flip side, before Flatpak and others, if the software wasn't in the repo then we're SOL and can't install it. Asking all developers everywhere to maintain a version of their software for every single package manager and ensure support for every distro is a bit unattainable. If Linux settled on one package manager or one distro then this would be solved, but such a statement is antithetical to the abundance of choice that Linux boasts.

Would you rather not be able to update an app or not be able to install an app?

[–] gerdesj@lemmy.ml 8 points 1 year ago (4 children)

Never used Flatpak or Snap in nearly 30 years of using Linux. I might one day but not yet.

I don't use Fedora these days but your package manager will probably have some hooks. Add one to update your Flatpaks when it has finished its main job.

load more comments (4 replies)
load more comments
view more: next ›