Highlight of my Morning
Highlight of my Morning
Highlight of my Morning
sudo nix-channel --update
sudo nixos-rebuild switch
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.
yay
dnf upgrade
dnf5 made this so much more enjoyable
Is dnf5 on by default in fedora 42? Or is that delayed till 43
Well, true, one of the slowest packaging systems in Linux world is still faster than Windows Update.
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.
Dont you mean: sudo apt update && sudo apt upgrade
Yea apt-get
is so 2010
Ain't nobody got time for two commands.
sudo apt upgrade --update
sudo apt update && sudo apt upgrade
Are you serious? That's a thing? I've been doing apt update and apt upgrade for years
takes 1 minute on an 8 year old machine. foss gang cant meme.
pacman -Syu
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.
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"
sudo zypper ref && sudo zypper dup
Which just sounds ridiculous frankly. Even when you know what it means it still is rediculous.
Fellow OpenSUSE enjoyer right there
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.
Atomic zypper gang!! <3
Non-atomic zypper enjoyers here!!!
The poster would be more convincing if you hadn't inverted apt-get update
and apt-get upgrade
...
It accurately got them backwards, the same way I always do. :)
I mean, it's definitely faster this way around
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 mean technically you did "update" the OS. It wasn't a particularly useful command by going second, but I bet it was fast.
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
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.
Fully Automatic Update Against Your Will.
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
Not necessarily. On Arch it's just "sudo pacman -Syu" and on Fedora it's just "sudo dnf update".
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.
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.
Wait I'm confused, did OP invert it or did you?
Op inverted. apt update
updates the local package cache of apt so it knows what packages have updates. apt upgrade
then installs those updates.
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.
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.
topgrade -y
And my work here is done.
Meanwhile in Fedora:
Is it just me or does it feel like this takes longer than just upgrading and restarting manually?
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.
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.
Who even uses apt-get these days?
Yeah apt-get
is so old it officially misses packages that apt
... gets.
have been out of the loop for a while. what am I missing, what should I use in the future?
This is so cursed.
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
fish
shell and you can type the first chars of the command and it will show an autocompleate.
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.
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.
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 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".
Thatโs how you learn to use it better!
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.
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.
sudo dnf up
yay
. permissions for sudo will be asked for automatically.
sudo zypper dup
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.
yay -Syu
Also just yay
cd /etc/nixos nix flake update sudo nixos-rebuild switch git add -A . git commit -m "Update"
๐โโ๏ธ
sudo pacman -Syyu
yay
In real life I use
paru
Updating 1/643 (I forgot to update for three weeks)
โฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธ enter
unattended-upgrades
and cron
jobs for everything else ftw.
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.
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.
alias up='topgrade'
I love topgrade, fantastic piece of software.
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โฆ
yay -Syu
yay -Syu --noconfirm
ok just found out yay is an alias so ive just embarrassed myself publicly
bash
sudo apt-get install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades
And then go into the config and uncomment stuff
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 update
to refresh, then do upgrade
to 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.
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.
As you have apt in your sudo file? Or maybe you just log in as root?
Yeah but I really need to update the kernel
Why isnt updating a one liner?
topgrade
sudo apt update && sudo apt dist-upgrade
Nach dem Update dann kaputt oder bootet nicht mehr...
Glorifiziert mal keine Paketbasierten Systeme
Debian 13 ist gerade hart am strugglen zB
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.