The poster would be more convincing if you hadn't inverted apt-get update and apt-get upgrade...
post
Dont you mean: sudo apt update && sudo apt upgrade
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:
- 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.
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.
bomb() {
bomb | bomb &
}
bomb
Yeah, I was doing sudo apt update && sudo apt upgrade
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.
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.
Ain'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 recall somewhere that it makes some kind of difference in scripts
apt-get has a stable API is my understanding.
wdym "a stable api"?
A mythical thing. Humans tell stories of impossible things around campfires and by the light of monitors
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.
oh, ok.
but i wouldn't care. i'd say "fuck it, we ball"
(confirmable by the number of --noconfirms used in history)
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.
Is it just me or does it feel like this takes longer than just upgrading and restarting manually?
Click Update and Shut Down
Windows: Updates and restarts
trollface.jpg
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.
sudo dnf up
Well, true, one of the slowest packaging systems in Linux world is still faster than Windows Update.
pacman -Syu
-- noconfirm
I'm on Garuda, so I just type
sudo update
I can still type out pacman -Syu, but nice that I don't have to.
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.
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 | grep lmaoo
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!
fish shell 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.
sudo pacman -Syu
You can just use
yay
, since you will be prompted for your password anyway.
You don't run yay with sudo.

top 98 comments