Maybe OP knew all along that they wanted to use the previous package list to upgrade and fetch the new one after! Maybe we’re all actually inverting it…
(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)
(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)
No problems anywhere you can always install older versions from a repo.
Upgrade -> update two days ago and then again today will leave me with exactly the same packages as it would if I ran it correctly the first time and then not at all today. Just the state of two days ago.
If you can't remember one or two commands then you are in fact stupid. With that said, Linux is for everyone.
There are distros that have auto updates as a feature they ship (Linux Mint comes to mind). There are distros that are basically impossible to break and there are distros where you are responsible for building your own system and keeping it functioning. It all depends on your own needs. Linux gives you the freedom to choose and there are more than one way to do things.
On linux, you can do what you wish. You can use a desktop environment with a GUI software center that pops up a notification that prompts you to install updates. Or update by opening the software center and selecting the ones you want. Or use the terminal commands. Or write an alias so you can type “update” and have it execute all your commands in the right order. Or script it to run silently in the background on an automated schedule.
And you can use your computer during updates, there’s no mandatory update during shutdown/boot.
If I try to update my GPU while I'm running a game sometimes it falls back to integrated graphics and gets slow+warm til I restart. That's a fuckup I just couldn't make on windows. Sorry, checkmate fosscommie.
fun fact: GPU drivers on Windows run in userspace, because MS got fed up with all the blue screens they caused and kicked them out of the kernel. if the GPU driver crashes, the screen will go dark for a second and then flick back on. if the GPU driver can't restart then Windows will fall back to software rendering.
On Mint I set up an automatic update schedule and have been double checking it when I think to. All GUI, no terminal commands. So far it’s been seamless. (Knock on wood)
Whoa, do you have something to read up on that? I'd be extremely surprised, since apt-get is supposed to be the script-safe variant, i.e. I'd imagine it's the more stable of the two.
It's actually just personal experience, but I stopped using apt-get a few years back now because I noticed if I did apt after apt-get there would often be a bunch of packages it missed.
Edit: looks like it might be because apt-get can't satisfy dependencies install new packages when upgrading while apt can since apt is a suite of different apt tools rolled into one.
Yeah I'm reading a little bit on it, and it seems like apt-get can't install new packages during an upgrade. On initial reading I was thinking there were specific packages it couldn't download or something, but this makes sense too. Regardless, this is news to me; I always assumed that apt and apt-get were the same process, just with apt-get having stable text output for awk'ing and apt being human-readable. I've been using nala for a long time anyway, but this is very useful knowledge.
You're right, I misspoke, it's that it can't install new packages, it can only upgrade existing ones. I guess I was thinking the only reason it would need to install new packages was if that was a new dependency.
Wait what? I have been running silver blue and vanilla fedora recently and I don't remember this happening. I always run my update script manually every day or so though. When do you see this screen?
It updates just like Windows automatically, in Discover. Then it asks to restart and upgrade and it's just like Windows. I did this just today. Nice UI and UX with Fedora with Plasma.
What? I've never had fedora reboot itself. Sometimes it asks if I want to install updates on reboot or shutdown. But I am always in charge of when that happens.
Gets the Ok from IT to switch to a Linux Distro for my work desktop.
Gets the Ok from my direct manager.
Gets the Ok from our contracts manager who used to be in my direct managers position before.
Direct manager reaches out to lead developer, who happens to be a windows fanboy, for the web app we use to ensure “compatibility”, gets told to be careful of what I do and our cybersecurity insurance won’t cover it.
Be me, looking around at all the minuscule pieces of hardware connected to the internet likely running some form of Linux or Unix.
I've started noticing websites just to refuse to work on Linux:
Xfinity
Microsoft
United Airlines
American Airlines
It's not like some weird script error either. It's straight up a 403 Forbidden on certain routes. Works perfectly fine if I switch to my Windows laptop. It's like it took one look at my user agent string and decided I was a bot.
Not saying you're wrong, but if you're running a VPN it could be that as well. More and more sites are demanding CAPTCHA tests and verification holds or just returning 403 for VPN access no matter what OS you are running.
Man they get really up in your business if you aren’t using Chrome and their dinky extension, that I swear he pulled from someone’s GitHub and rebranded as his own, which all it does is open file links in the file browser.
I made a point by switching my user agent on Zen Browser to report as Chrome, Ubuntu haven’t heard a peep about it yet.
Side note at one point in time the clock-in we use, which is also a web app, had its admin/manager panel exposed to everyone in the company, I reported it and all I got was a thanks.
&& executes the second command, if the command before was successful, || executes the second command if the first one was unsuccessful and ; executes the second command regardless of success.
Fun fact and disclaimer: this is a fork bomb. i tried it to run it on my phone via termux, thinking android would act up and terminate termux; but nope, my phone froze. Thankfully i hard-reset my phone by holding [VOLUME_DOWN]+[POWER] for ~5 seconds.
I may be totally confused but I've also always done it in that order, otherwise I feel like it would run upgrades from your cache of the apt repos (possibly hitting errors as stuff likes to change), then after it would run apt update (updating the repos).
My thought has always been update repos, then check those repos for software upgrades. I could definitely be wrong though.
Yeah but shouldn't the order matter? My understanding was that && just said 'after the previous command, run this... ' so running upgrade before update would miss any changes changes to repos... From what I can tell update is required before upgrade (just like you have it), doing it in reverse missed a ton of updates for me.
Presumably running upgrade with the update flag is smart enough to do it in the proper order because there would be no point in doing it in the opposite order. Many other package managers just work like this out of the box. Homebrew is such an example. Running upgrade automatically does "update" first.
The apt(8) commandline is designed as an end-user tool and it may change behavior between versions. While it tries not to break backward compatibility this is not guaranteed either if a change seems beneficial for interactive use.
That'd just the difference between them, I don't think it's something to worry about in your personal machine. Maybe if you're writing a script that thousands of people will use or something.
Install Windows - does updates as part of the installation process. Get to desktop and check for updates - more updates to install. Reboot and check for updates again - yet more updates.
No it will update and once that is done it will shut down. But the update includes a restart so it will restart and then require you to type your password so it can finish the update, after which it will shut down.
It's insanity. I had to upgrade my work laptop to windows 11 this week.
IT didn't do their research and turns out our main software isn't compatible with windows 11 at all. So i had to downgrade back to windows 10. When i did, photos don't work and the microsoft store wont open.
Windows is such a horrible system, i have no idea why they made it so poorly. I could have installed any distro of linux and had it working well in less than 20 minutes. Upgrading to windows 11 took almost 2 hours and it still didn't work.
Now IT has to scramble to find a solution before the 14th and we lose all security updates, which they are very concerned about. What a nightmare to be in IT.
I had the same problem trying to use a Windows 11 laptop after running linux at home for years. Turns out the "looking stuff up" part is how you learn how to use it better.
::: spoiler note
this doesn't actually do the same thing as the previous comment running autoremove afterwards does; the former will remove things which were rendered removable by the upgrade while the latter will only remove things which were already autoremovable prior the upgrade.
:::
The beauty of Linux is the triviality of creating an alias that runs whatever long or short update command by typing "upd" or "release_the_epstein_files". E.g., in ~/.bashrc, place: alias release_the_epstein_files="sudo pacman -Syu --noconfirm"
Nothing like the joy of my system upgrading without a hassle... just need to press the up arrow key until I find the command... I'll get there eventually
Or ctrl+r and start typing what you're searching for, and repeat ctrl+r to find the next newest match.
For example, [C-r] ssh [C-r] [C-r] will auto fill the 3rd most recent ssh command you've run. Try it, your life will be filled with rainbows and unicorns.
There are even better ways built into the shell, but I can never remember any of them. I also never thought of history|grep, I think I might actually remember that one. Thanks!
Last week my brother had to use my laptop and install Rstudio(for some University project) because his Mac was too old and slow. I was out of home so I had to instruct him through the phone and I could hear his awe while he explained how easy was to install the program. He told me laughing that he could see the pacman and started to cheer for it, this made my day.
I guess what I meant is that I don't like upgrades that happen without me explicitly requesting each and every one of them, and me watching the upgrade process as it happens for errors.
I never got unattended-upgrades to work for me on the machine I tried it on. Best I could tell, it just didn't do anything. It was frustrating.
But many years back I set up my raspberry pi with a cron job that was effectively (if not literally) apt update && apt full-upgrade && reboot and that seemed to be working just fine.
I followed a number of guides to try to get it to work. Including doing that. No dice.
I still think it's probably user error on my part, but I'm still shocked there was no command to effectively "force run an unattended upgrade now" to test that it works correctly.
You don't have to reboot after updating Debian (and most mutable distros I think?) packages, you just need to restart the updated software/software using updated libraries.
The easiest way to achieve this is of course to reboot, but it's not required at all.
Yes, saving is definitely not a thing in any app...
What I was specifically referencing there though is that Linux distro upgrade installers universally suck AFAIK. They break left and right and when they do they basically take out the system. Otherwise, Windows’ behavior there does suck a fair bit
Except that every so often my graphics drivers get messed up somehow and I need to spend the afternoon debugging it. Tbf this has happened to me on Windows too, although less often.
Gnome Software does this with offline upgrades. It's optional. Doing sudo dnf upgrade is the same as sudo apt update && upgrade. No reboot. Obviously you should reboot for kernels and certain hooks but otherwise yeah. You can disable gnome software automatic downloads etc
Shhh, you can just edit the comment to be "yay -Sau" and pretend you check for whether stuff breaks and act updating aur packages is something you prefer to do seperately ;)
Am I incorrect to say that using the command "super user do" can be expressed conversationally as "invoking super user?" I'm confused. The meme literally says "sudo." And while you don't need to begin the command with "sudo," you'll then get a message asking you to enter your root password. So you're still kinda invoking super user.
Maybe you should double-check me, though. Type $ apt-get update into your terminal. If it asks for your password, reply with what you entered to satisfy that prompt. For research reasons.
su means "switch user" and by default uses root if a root user exists.
You can use sudo -i, sudo bash (or sudo sh, sudo fish etc), run0 and likely more ways to open a root shell.
But for running a program with root, use sudo, run0 , pkexec or doas.
Actually, you should not run internet-facing programs as root. For example when downloading a repo file, download it without root, move it with root.
But well, most package managers do not care and use don't use polkit (ask for password when needed). Flatpak, rpm-ostree and some others use polkit well.
Enough of these dumb memes already. Do we really so desperately need to boost our self esteem that fucking much? Yes Linux has it's cool benefits over Windows. We fucking know.
The poster would be more convincing if you hadn't inverted
apt-get updateandapt-get upgrade...Maybe OP knew all along that they wanted to use the previous package list to upgrade and fetch the new one after! Maybe we’re all actually inverting it…
(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)
No problems anywhere you can always install older versions from a repo.
Upgrade -> update two days ago and then again today will leave me with exactly the same packages as it would if I ran it correctly the first time and then not at all today. Just the state of two days ago.
😭😭
I mean technically you did "update" the OS. It wasn't a particularly useful command by going second, but I bet it was fast.
If you run it like that every day you will always be one day behind in packages. Not realy that big of a problem (unless on an internet facing server)
It's fine! You were trying to show how Windows is better because you can't make a mistake like that and succeeded!
I'm joking
I mean, it's definitely faster this way around
It accurately got them backwards, the same way I always do. :)
Thank you, I mostly use pacman but have Debian (rasbian?) on raspberry pi and was fully willing to believe I'd been updating it wrong this whole time
That’s the best part of this post. Windows is fully automatic, while on Linux you need to tell apart two terminal commands with confusing naming.
Not necessarily. On Arch it's just "sudo pacman -Syu" and on Fedora it's just "sudo dnf update".
I just type "yay".
I just type "paru".
I just type help
I just click the "Install Updates" notification when it pops up.
See, it’s super easy on Linux, just different on every distribution.
If you're too stupid to remember one or two commands there are GUI applications available where you can click "a button" to update your system.
Or make an alias with the update command and name it "update". This works on every distro.
Ah yes, the way to advocate for Linux is calling users stupid.
If you can't remember one or two commands then you are in fact stupid. With that said, Linux is for everyone.
There are distros that have auto updates as a feature they ship (Linux Mint comes to mind). There are distros that are basically impossible to break and there are distros where you are responsible for building your own system and keeping it functioning. It all depends on your own needs. Linux gives you the freedom to choose and there are more than one way to do things.
On linux, you can do what you wish. You can use a desktop environment with a GUI software center that pops up a notification that prompts you to install updates. Or update by opening the software center and selecting the ones you want. Or use the terminal commands. Or write an alias so you can type “update” and have it execute all your commands in the right order. Or script it to run silently in the background on an automated schedule.
And you can use your computer during updates, there’s no mandatory update during shutdown/boot.
If I try to update my GPU while I'm running a game sometimes it falls back to integrated graphics and gets slow+warm til I restart. That's a fuckup I just couldn't make on windows. Sorry, checkmate fosscommie.
Curious what happens in windows now
fun fact: GPU drivers on Windows run in userspace, because MS got fed up with all the blue screens they caused and kicked them out of the kernel. if the GPU driver crashes, the screen will go dark for a second and then flick back on. if the GPU driver can't restart then Windows will fall back to software rendering.
Which is what you see happening when updating or reinstalling a gpu driver.
Funny thing is, gpu drivers can still cause a bsod by causing fuckups in the directx driver, which ive seen happen :')
On Mint I set up an automatic update schedule and have been double checking it when I think to. All GUI, no terminal commands. So far it’s been seamless. (Knock on wood)
You dont though. Most linux also have an automatic/GUI option.
You think ive touched the apt commands in linux...?
I mean, youre right, but thats because i like to be hands on. But i dont have to if i wanted :p
Wait I'm confused, did OP invert it or did you?
Op inverted.
apt updateupdates the local package cache of apt so it knows what packages have updates.apt upgradethen installs those updates.Who even uses apt-get these days?
Yeah
apt-getis so old it officially misses packages thatapt... gets.Whoa, do you have something to read up on that? I'd be extremely surprised, since
apt-getis supposed to be the script-safe variant, i.e. I'd imagine it's the more stable of the two.It's actually just personal experience, but I stopped using
apt-geta few years back now because I noticed if I didaptafterapt-getthere would often be a bunch of packages it missed.Edit: looks like it might be because
apt-getcan'tsatisfy dependenciesinstall new packages when upgrading whileaptcan sinceaptis a suite of differentapttools rolled into one.Yeah I'm reading a little bit on it, and it seems like
apt-getcan't install new packages during an upgrade. On initial reading I was thinking there were specific packages it couldn't download or something, but this makes sense too. Regardless, this is news to me; I always assumed thataptandapt-getwere the same process, just withapt-gethaving stable text output for awk'ing andaptbeing human-readable. I've been usingnalafor a long time anyway, but this is very useful knowledge.Does Simba know about this?
Wait what.
apt-getis made for scripting,aptis interactive. Both should resolve dependencies.dpkgdoes not resolve them.But for interactive usage always use apt, guides using apt-get have no idea what they are doing
You're right, I misspoke, it's that it can't install new packages, it can only upgrade existing ones. I guess I was thinking the only reason it would need to install new packages was if that was a new dependency.
Very weird
apt-get upgrade --with-new-pkgsaptgenerally downloads more things thanapt-geton my Debian machine.apt-getnever broke anything, but I tend to eye it suspiciously now.Legitimately didn't know this and occasionally type
apt-getjust for a bit of frivolityhave been out of the loop for a while. what am I missing, what should I use in the future?
Dont you mean: sudo apt update && sudo apt upgrade
Yea
apt-getis so 2010Nope. I meant paru.
Meanwhile in Fedora:
It is done that way for better reliability. It is optional and not even needed with Silverblue.
Wait what? I have been running silver blue and vanilla fedora recently and I don't remember this happening. I always run my update script manually every day or so though. When do you see this screen?
When it updatedssystem files it'll do this when you shut down your computer.
If you never shut it down it never will lol
It updates just like Windows automatically, in Discover. Then it asks to restart and upgrade and it's just like Windows. I did this just today. Nice UI and UX with Fedora with Plasma.
At least you get the option to disable, I have it disabled, I'll reboot when I say I will reboot.
What? I've never had fedora reboot itself. Sometimes it asks if I want to install updates on reboot or shutdown. But I am always in charge of when that happens.
Is it just me or does it feel like this takes longer than just upgrading and restarting manually?
Be me -
Gets the Ok from IT to switch to a Linux Distro for my work desktop.
Gets the Ok from my direct manager.
Gets the Ok from our contracts manager who used to be in my direct managers position before.
Direct manager reaches out to lead developer, who happens to be a windows fanboy, for the web app we use to ensure “compatibility”, gets told to be careful of what I do and our cybersecurity insurance won’t cover it.
Be me, looking around at all the minuscule pieces of hardware connected to the internet likely running some form of Linux or Unix.
It's a fucking web app. Make sure it works for a browser. You suck as a web developer if your shit web app needs to work on a specific OS.
And those are fighting words because I build web apps.
I've started noticing websites just to refuse to work on Linux:
It's not like some weird script error either. It's straight up a 403 Forbidden on certain routes. Works perfectly fine if I switch to my Windows laptop. It's like it took one look at my user agent string and decided I was a bot.
Not saying you're wrong, but if you're running a VPN it could be that as well. More and more sites are demanding CAPTCHA tests and verification holds or just returning 403 for VPN access no matter what OS you are running.
I cooked up my own VPN and I still get blocked sometimes because it's a data centre IP. For example, Wikipedia blocked the whole /30 range.
No VPN.
Man they get really up in your business if you aren’t using Chrome and their dinky extension, that I swear he pulled from someone’s GitHub and rebranded as his own, which all it does is open file links in the file browser.
I made a point by switching my user agent on Zen Browser to report as Chrome, Ubuntu haven’t heard a peep about it yet.
Side note at one point in time the clock-in we use, which is also a web app, had its admin/manager panel exposed to everyone in the company, I reported it and all I got was a thanks.
This is so cursed.
Are you serious? That's a thing? I've been doing apt update and apt upgrade for years
Yes.
Also don't forget && exists for sequential completion of any commands
&&executes the second command, if the command before was successful,||executes the second command if the first one was unsuccessful and;executes the second command regardless of success.These are much more useful than the :(){ :|:& };: operator
Fun fact and disclaimer: this is a fork bomb. i tried it to run it on my phone via termux, thinking android would act up and terminate termux; but nope, my phone froze. Thankfully i hard-reset my phone by holding [VOLUME_DOWN]+[POWER] for ~5 seconds.
Expanded it's more clear what's going on.
TSA would like to know your location
Yeah, I was doing
sudo apt update && sudo apt upgradeI may be totally confused but I've also always done it in that order, otherwise I feel like it would run upgrades from your cache of the apt repos (possibly hitting errors as stuff likes to change), then after it would run apt update (updating the repos).
My thought has always been update repos, then check those repos for software upgrades. I could definitely be wrong though.
Presumably running upgrade with the update flag does it all in one go.
Yeah but shouldn't the order matter? My understanding was that && just said 'after the previous command, run this... ' so running upgrade before update would miss any changes changes to repos... From what I can tell update is required before upgrade (just like you have it), doing it in reverse missed a ton of updates for me.
If it were upgrade && update, yes that would miss the boat. --update is a baked in feature of apt upgrade, so it knows what to do ^_^
Presumably running upgrade with the update flag is smart enough to do it in the proper order because there would be no point in doing it in the opposite order. Many other package managers just work like this out of the box. Homebrew is such an example. Running upgrade automatically does "update" first.
It also has sudo apt autopurge which does autoremove --purge
sudo apt update && sudo apt upgradeAin't nobody got time for apt-get. apt all the way.
Yeah it's crazy to me that people default to it. For scripts, sure, but apt is so much prettier.
I use apt in scripts and docker files. I don't even know what apt-get is supposed to do better there?
It has a stable API but realistically I can't see them changing apt so much it matters.
People are creatures of habit and apt didn't always exist
I recall somewhere that it makes some kind of difference in scripts
apt-get has a stable API is my understanding.
wdym "a stable api"?
https://manpages.debian.org/buster/apt/apt.8.en.html
oh, ok.
but i wouldn't care. i'd say "fuck it, we ball"
(confirmable by the number of
--noconfirms used inhistory)That'd just the difference between them, I don't think it's something to worry about in your personal machine. Maybe if you're writing a script that thousands of people will use or something.
A mythical thing. Humans tell stories of impossible things around campfires and by the light of monitors
Click Update and Shut Down
Windows: Updates and restarts
trollface.jpg
Install Windows - does updates as part of the installation process. Get to desktop and check for updates - more updates to install. Reboot and check for updates again - yet more updates.
No it will update and once that is done it will shut down. But the update includes a restart so it will restart and then require you to type your password so it can finish the update, after which it will shut down.
sudo dnf up
sudo zypper dup
yay. permissions for sudo will be asked for automatically.It's insanity. I had to upgrade my work laptop to windows 11 this week.
IT didn't do their research and turns out our main software isn't compatible with windows 11 at all. So i had to downgrade back to windows 10. When i did, photos don't work and the microsoft store wont open.
Windows is such a horrible system, i have no idea why they made it so poorly. I could have installed any distro of linux and had it working well in less than 20 minutes. Upgrading to windows 11 took almost 2 hours and it still didn't work.
Now IT has to scramble to find a solution before the 14th and we lose all security updates, which they are very concerned about. What a nightmare to be in IT.
It’s always a nightmare being in IT lol
Nobody ever calls to say, “Hey! Just wanted to let you know that my email is working great, keep up the good work!”
We only hear from people when shit is broken.
Being in a windows shop only makes it 100x more difficult and expensive.
I really like Linux but I just wish I understood how to use it better. I keep having to look up how to do things.
That’s how you learn to use it better!
That's literally everything ever that is worth it.
Imagine saying "I really wanna play piano but I just wish I understood how to play it better. I keep having to look up how to do things".
I had the same problem trying to use a Windows 11 laptop after running linux at home for years. Turns out the "looking stuff up" part is how you learn how to use it better.
Even better:
sudo apt --update --autoremove upgrade -y::: spoiler note this doesn't actually do the same thing as the previous comment running autoremove afterwards does; the former will remove things which were rendered removable by the upgrade while the latter will only remove things which were already autoremovable prior the upgrade. :::
pacman -Syu-- noconfirm
do as I say
I'm on Garuda, so I just type
I can still type out pacman -Syu, but nice that I don't have to.
The beauty of Linux is the triviality of creating an alias that runs whatever long or short update command by typing "upd" or "release_the_epstein_files". E.g., in
~/.bashrc, place:alias release_the_epstein_files="sudo pacman -Syu --noconfirm"Nothing like the joy of my system upgrading without a hassle... just need to press the up arrow key until I find the command... I'll get there eventually
I did this until my coworker got annoyed enough that they told me to start using
history | greplmaooOr ctrl+r and start typing what you're searching for, and repeat ctrl+r to find the next newest match.
For example,
[C-r] ssh [C-r] [C-r]will auto fill the 3rd most recent ssh command you've run. Try it, your life will be filled with rainbows and unicorns.Wait until they tell you about ctrl+r!
There are even better ways built into the shell, but I can never remember any of them. I also never thought of
history|grep, I think I might actually remember that one. Thanks!Wow, thank you for this.
fishshell and you can type the first chars of the command and it will show an autocompleate.Last week my brother had to use my laptop and install Rstudio(for some University project) because his Mac was too old and slow. I was out of home so I had to instruct him through the phone and I could hear his awe while he explained how easy was to install the program. He told me laughing that he could see the pacman and started to cheer for it, this made my day.
Well, true, one of the slowest packaging systems in Linux world is still faster than Windows Update.
unattended-upgradesandcronjobs for everything else ftw.No Linux system of mine upgrades itself without my explicit consent. That's one of the many reasons why I don't run Windows.
Setting those up is me explicitly giving my consent for it to upgrade on a schedule.
Yeah alright. That's one way of looking at it 🙂
I guess what I meant is that I don't like upgrades that happen without me explicitly requesting each and every one of them, and me watching the upgrade process as it happens for errors.
I never got
unattended-upgradesto work for me on the machine I tried it on. Best I could tell, it just didn't do anything. It was frustrating.But many years back I set up my raspberry pi with a cron job that was effectively (if not literally)
apt update && apt full-upgrade && rebootand that seemed to be working just fine.It broke some things (horrifically) for me because headers didn't get updated, modules didn't get rebuilt.
To make it worse, I didn't set it up. That shit is disabled now. Defunct. Toast. Never again to run.
You need to edit the config file
I followed a number of guides to try to get it to work. Including doing that. No dice.
I still think it's probably user error on my part, but I'm still shocked there was no command to effectively "force run an unattended upgrade now" to test that it works correctly.
I even set it up using ansible, should work lol
Install the package, edit the config file, maybe enable a systemd service, maybe not even that
sudo pacman -Syu
sudo yayYou don't run yay with sudo.
How do you know what I do?
You can just use
yay, since you will be prompted for your password anyway.Yep, and yay will bitch about you using sudo and make you redo it without sudo.
ssu in config,
yay -SyuI believe sudo pacman without an argument works aswell
⬆️⬆️⬆️⬆️⬆️⬆️ enter
sudo pacman -Syyu
In real life I use
Updating 1/643 (I forgot to update for three weeks)
Also just
yayalias up='topgrade'I love topgrade, fantastic piece of software.
They both require a restart.
You don't have to reboot after updating Debian (and most mutable distros I think?) packages, you just need to restart the updated software/software using updated libraries.
The easiest way to achieve this is of course to reboot, but it's not required at all.
Usually only for kernal revisions on Linux.
Windows also does most of its updating silently while handling its major version upgrades a lot more elegantly.
When you are neck-deep in a (possibly mult-day) project where a restart would lose your place, I wouldn't really call this 'elegant'...
Yes, saving is definitely not a thing in any app...
What I was specifically referencing there though is that Linux distro upgrade installers universally suck AFAIK. They break left and right and when they do they basically take out the system. Otherwise, Windows’ behavior there does suck a fair bit
I gotta say, apt-get is not my favorite way to update... yay is so much simpler.
Yay but especially apk keep it much simpler than apt.
Apk?
It's Alpine Linux's package manager.
sudo zypper ref && sudo zypper dup
Fellow OpenSUSE enjoyer right there
Which just sounds ridiculous frankly. Even when you know what it means it still is rediculous.
Is it?
refresh makes it more clear than update that you're not updating the computer's packages, just the database of packages
DPKG based distros also need dist-upgrade or full-upgrade, rather than just upgrade, when you are switching versions where removals might be needed
Oh don't get me wrong, I use Suse on a laptop. The commands strike me as funny looking. Like if I didn't know what they did.
There is nothing more serious than Zypper!
yay
"I use arch ... btw", also btw
For APT enjoyers,
alias yay="sudo apt update && sudo apt upgrade"Also,
alias nay="yay -Rns"Or yeet if you prefer, for the yay/nay or yay/yeet pair.
Thank you for this, I love it. We use Ubuntu at work and I am quite tempted to covertly add yay as an alias.
sudo nix-channel --update
sudo nixos-rebuild switch
nvim flake.nixsudo nixos-rebuild switch --flake .#flakeAnd then go into the config and uncomment stuff
Except that every so often my graphics drivers get messed up somehow and I need to spend the afternoon debugging it. Tbf this has happened to me on Windows too, although less often.
Found the nvidia user 😅
Yep…
🙆♀️
I'm on arch so its the highlight of every morning 🤣
topgrade -y
And my work here is done.
Fedora does this too, it reboots to install updates...
Gnome Software does this with offline upgrades. It's optional. Doing sudo dnf upgrade is the same as sudo apt update && upgrade. No reboot. Obviously you should reboot for kernels and certain hooks but otherwise yeah. You can disable gnome software automatic downloads etc
Atomic zypper gang!! <3
Non-atomic zypper enjoyers here!!!
yay -Syu
yay -Syu --noconfirm
ok just found out yay is an alias so ive just embarrassed myself publicly
Shhh, you can just edit the comment to be "yay -Sau" and pretend you check for whether stuff breaks and act updating aur packages is something you prefer to do seperately ;)
Sort of? But no. It's a aur extension of pacman. Also - Syu is the default flags
yay is an alias of yay -Syu
dnf upgrade
dnf5 made this so much more enjoyable
Is dnf5 on by default in fedora 42? Or is that delayed till 43
dnf5 became default in 41.
Aight. Question.
Should I upgrade THEN update ? Or vise versa?
apt-get update updates the package index files, while apt-get upgrade upgrades the actual packages installed in your system.
The OP did it in the wrong order. First do
updateto refresh, then doupgradeto install.WHEW. I have been unnecessarily worried about that for like, 2 years.
It's through Update Manager (mintupdate) for me, but I definitely feel like the happy guy looking out at the nice view.
Yeah but I really need to update the kernel
My experience, updates usually work fine. Dist upgrades work fine 2/3 of the time.
The support for updating to a new version of a distribution is often still a headache. Some distributions don’t support it at all.
It's missing the part where invoking su requires your password. For the sake of accuracy, I think you should show how you enter your password.
Also, I'm nervous about the command ifconfig. Can you try running that and paste your results here, to help quiet my fears, of course.
You dont need su for updates
Am I incorrect to say that using the command "super user do" can be expressed conversationally as "invoking super user?" I'm confused. The meme literally says "sudo." And while you don't need to begin the command with "sudo," you'll then get a message asking you to enter your root password. So you're still kinda invoking super user.
Maybe you should double-check me, though. Type $ apt-get update into your terminal. If it asks for your password, reply with what you entered to satisfy that prompt. For research reasons.
su means "switch user" and by default uses root if a root user exists.
You can use
sudo -i,sudo bash(orsudo sh,sudo fishetc),run0and likely more ways to open a root shell.But for running a program with root, use
sudo,run0,pkexecordoas.Actually, you should not run internet-facing programs as root. For example when downloading a repo file, download it without root, move it with root.
But well, most package managers do not care and use don't use polkit (ask for password when needed). Flatpak, rpm-ostree and some others use polkit well.
Well, look at me learning something new! I guess even if I've RTFM, I should RTFM again.
'su' can call the king to the blood-soaked battlefield; sudo makes a replaceable squire the king's proxy instead.
Uhm... whatever you say
As you have apt in your sudo file? Or maybe you just log in as root?
What
Why isnt updating a one liner?
topgradeEnough of these dumb memes already. Do we really so desperately need to boost our self esteem that fucking much? Yes Linux has it's cool benefits over Windows. We fucking know.
I agree. Enough with these simple memes - we need full-on propaganda!
You know what my OS doesn't do? Yeah, exactly. That's the better question now.
PS I love you
Nach dem Update dann kaputt oder bootet nicht mehr...
Glorifiziert mal keine Paketbasierten Systeme
Debian 13 ist gerade hart am strugglen zB
takes 1 minute on an 8 year old machine. foss gang cant meme.