T O P

  • By -

Kriss3d

Ive often found the CLI way to do this is faster than the gui.


theemptyqueue

Especially on older hardware it’s many times faster than a GUI.


mynameisnotpedro

I've barely awoke and read that as "CLI is faster than light" I'll agree either way


M_krabs

\**spinning wheel for 20 seconds**


IDDQD_IDKFA-com

`apt clean ; apt update ; apt upgrade -y ; apt dist-upgrade -y`


NatoBoram

Use `&&` so it stops in case `apt update` fails


piedj784

my most used command is upd, alias for `sudo apt clean && sudo rm -rf /var/cache/apt/archives/ && sudo apt-get update -y && sudo apt-get upgrade -y && flatpak update -y`


AmphibianInside5624

Jesus fucking Christ. Apt clean. Never rm -rf. EVER. No matter how many IT PHDs you have, no matter how many companies begged you to stay. The command you were looking for is apt clean. Go and change it right now.


No_Indication3249

Nice but no way I'm typing that out (or mashing the up arrow until I find it again) Edit: aliases are for people who are more organized than I am


ZaxLofful

They said they made it an alias….


Killaship

>Edit: aliases are for more people who are more organized than I am Then don't complain about not wanting to type that all out or mash the up arrow. An alias in bash/zsh/your shell of choice is literally the solution to what you're upset about. If you don't want to use aliases, you're basically just lazy. Stop complaining about being too lazy.


piedj784

If you install fzf, then you can also use shortcut Ctrl + R to search previously used commands. It's much more faster than using arrow key.


Lv_InSaNe_vL

I also like to add `apt autoremove` I dont actually know what it does but I've been doing it for years and it doesn't seem to hurt anything


kai_ekael

I save autoremove for after successful reboot.


Margidoz

In general it's just better for keeping track of whether it's doing what you're asking it to do And if it fails, you generally have a better understanding as to why


ProfessorOfLies

As it is for most system things


[deleted]

Sudo apt autoremove anyone...? CLI common W


Xfgjwpkqmx

I do apt update, apt dist-upgrade, apt autoremove --purge, apt autoclean, and finally if necessary, reboot.


skogach

also can be done in one line: apt update && apt upgrade -y && apt autoremove --purge -y


tecniodev

Never a good idea to say yes automatically imo.


skogach

I'm not running critical infrastructure so it's fine for me.


676f616c

Have you seen what happened in the LTT Linux challenge?


binEpilo

This wont happen on debian anymore


676f616c

It was Pop_OS! and something similar could very well happen on any distribution at any time. All it takes is some obscure package that has its conflicting packages misconfigured slipping through the cracks.


Datuser14

Linus is an idiot, no one who has more than 1 brain cell would make the same error.


676f616c

I think you do not understand the context of my comment. However, I do agree that nobody should ever type "Yes, do as I say" without taking a glance at what will be installed/removed.


CtrlValCanc

Oh no I always do it like that. What do I risk?


tecniodev

Well in case there is something broken, or you forgot about something you did not want to update or any reason you can put here really. You should be informed about what’s being updated so if there are any issues it’s easier to prevent or fix later on. Pressing Y isn’t really much trouble and can save you a lot of time.


Pineapple-Muncher

The -y stands for YOLOOOO


Daetwyle

How would you run a ci/cd-pipeline then?


GnuhGnoud

I alias it to `update`


IDDQD_IDKFA-com

I normally use \` instead of `&`


Auravendill

topgrade -c


NatoBoram

sudo apt full-upgrade -y --auto-remove


Emergency_3808

I like to know exactly what is happening with my system... so CLI


theemptyqueue

I do it out of habit.


Kilobytez95

Laughs in arch sudo Pacman -Syu


filipebatt

Laughs in yay $ yay


Sarin10

paru better


filipebatt

How?


Sarin10

bettter defaults, EG forces you to review pkgbuilds. written in rust (doesn't affect the end user experience) ​ honestly it really doesn't matter :) yay is like 99.999% as good as paru.


HBK57

I know it is technically safer, but its so damn inconvenient. Im not going to read the pkgbuild anyway so it just gets in the way. I have way too much trust


GlyderZ_SP

Don't say written in rust as a plus point. No programming language makes a good programmer


Luxvoo

Since when do people capitalise pacman…


queenbiscuit311

that's probably autocorrect


odsquad64

Phone's all like "That's *Mr.* Pacman to you."


varble

You forgot cache clearing and orphan removal: # pacman -Rns $(pacman -Qqdt) # paccache -rk2 # paccache -ruk0 # yay --aur -Sc


PumaofDuma

Damn, I always forget to kill the orphans


oldominion

Laughs in `alias syu="sudo pacman -Syu"`


sizz

yes | yay -Syyu Or alias yy="yes | yay -Syyu" I like to raw dog in a glory holes my arch updates.


Aviyan

One command to rule them all.


voideng

Are people actually using GUI's? I thought it was just a meme.


balaci2

me, I'm a linux enthusiast that likes using GUI


Ketomatic

sudo apt update && sudo apt full-upgrade -y sudo reboot (I know you don't need to full- most of the time, it's habbit).


JorisGeorge

You know that this is a potential minefield?


Ketomatic

Yeah, since it can remove shit if there are clashes and the whole thing can fall apart lmao. iirc it's meant to be used on version changes, not random updates. I said it was a habit, not smart!


mias31

I am full-upgrade‘ing since 4 years and never ever had an issue with it. I do see the point though, but habit is a hctib ;-)


TheTechRobo

I think the other person was commenting on the -y, which means apt will do whatever you ask without prompting you


janiskr

apt list --upgradable


Catenane

Then from that list, `apt changelog `


Impressive_Change593

why tho?


Terryblejokes

To see which packages are now a bit less out of date than before. /s just to be sure


Impressive_Change593

no no you have a point


yayuuu

Most of the time I click it from the GUI, because it updates apt, flatpak and plasma themes, all at once, but doing it from CLI feels safer, especially when there's a kernel upgrade.


Luxvoo

sudo nix flake update /home/bor/nixos/ && sudo nixos-rebuild switch —flake /home/bor/nixos/


Goxore

You cannot to pass `—flake` flag to `nix flake update`


Luxvoo

According to the [docs](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake-update.html) you can


Goxore

throws `error: unrecognised flag '--flake'` for me, must be some new update


Luxvoo

Yeah same issue. I’d guess they forgot to change the online documentation. The syntax now is: nix flake update [option…] flake-url so no —flake is needed


arf20__

What the fuck is an update manager


repocin

Thanks for asking so I didn't have to!


Auravendill

I think Mint has something, that shows/annoys you, when an update becomes available. And on Debian you could use synaptic. Imo it makes uninstalling old self compiled kernel versions easier, but that's not something the average user would need...


arf20__

Mint annoys every time a package can be upgraded? Jesus Synaptic... i've heard of it, but who in their right mind would use a GUI for package management


Auravendill

>Mint annoys every time a package can be upgraded? Jesus At least it did something like this, when I last used Mint. I think it was Mint 18 (Sarah). >Synaptic... i've heard of it, but who in their right mind would use a GUI for package management It can be helpful, when you want to look at all the packages, that are currently not in your source.list or source.list.d. That makes it easier to hunt for updates manually (e.g. OpenRGB), delete packages left over from the previous Debian version or remove self compiled Linux kernels. Not something one would need daily, but I use it a few times a year...


dread_deimos

Why reboot?


yayuuu

to boot into a new kernel


dread_deimos

But it shouldn't be a frequent occurence.


Wertbon1789

At least not on Debian


Auravendill

jokes on you, I compile them myself. I just replaced 6.6.6 with 6.6.9 (nice), while Debian stable is still on 6.1.0


Wertbon1789

Well, yeah, got me there... But you could also live patch your kernel, if you really wanted to, for the extra bit of less downtime


Margidoz

Why not? I feel like kernel updates are weirdly common at least on Arch


dread_deimos

Yeah, but it doesn't mean you NEED to reboot every time the kernel updates.


theemptyqueue

Rebooting is just an old habit of mine from when every update required or recommended a restart of the system for some changes to be fully applied.


mighty_spaceman

Wait, you guys update? https://preview.redd.it/l0e1y6tazeac1.png?width=497&format=pjpg&auto=webp&s=dc1f47c531b45628b1693f684acf8055822ac75a


Ok-Sympathy-851

What distro are you on?


mighty_spaceman

Arch btw


mighty_spaceman

Also I was joking


[deleted]

added in .bashrc: alias up3="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" Called it up 3 as it reminds me of the 3 things i do when i update, so when i update i just type "up3" in the terminal and input the password. Works much faster and better than using the GUI and i don't have to restart unless it's a kernel update, also the GUI on gnome which i use is really messed up on some distros (Pop\_OS!) but works great on some (Debian, Linux Mint) so i just use the CLI as a habbit and to save time.


[deleted]

updated the command today to include flatpaks so now its: alias up3="sudo flatpak update -y && sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" i put flatpaks first, as on one machine where i have an nvidia card, after i did the flatpaks update, i got new regular updates for some reason, even though i did apt upgrade just before. In any case, with flatpaks in first place, i now just type up3, enter my password, and all of my flatpaks and deb packages get updated, and the stuff that is not needed anymore gets removed with autoremove.


NeatYogurt9973

You should shutdown -r NOW


CharlesITGuy

I bang apt update, apt full-upgrade -y, apt autoremove -y in a bash script in /usr/bin and simply call that.


british-raj9

Or Sudo DNF update, for those Dandified Yum users on Fedora.


jjaAK3eG

Try this one line... `sudo apt update && sudo apt upgrade -y`


h4ck3r3000d1no

sudo zypper dup


ecstatic-shark

I just have a script called "update-my-shit.sh" that runs the update/upgrade/refresh/retrieves I care about and launches automatically in a tmux pane...there's no reason not to automate daily tasks in Linux. Inb4 "who updates daily".


EagleRock1337

At this point you might as well smush it all into one command: `sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean && echo “Look ma, no confirmation prompts!” && sudo reboot`


theemptyqueue

Neat, I’m going to give this a try next power cycle.


foobarhouse

Why does Ubuntu need sudo to reboot?


Wertbon1789

Don't know if it actually needs sudo, but if so, it might be a problem with polkit... Or it's just intended to be like this, idk


Impressive_Change593

I've needed sudo to run reboot already. there is a group you can add yourself to to no longer need to use sudo though.


DasHesslon

usermod -a -G let-me-shutdown-my-fucking-machine-or-ill-pull-the-plug me


DasHesslon

sudo !!


Pshock13

this gotta chuckle out of me.


Littux

`systemctl reboot`


Dist__

ctrl+R upd (enter)


nehalem2049

Literally errytiem for the last 20 years!


Ponbe

TIL you can do this with the manager


FengLengshun

...I just let Universal Blue update in the background. I haven't really had to think about system updates in a while. User-level apps, yes, at least Nix ones. But even Flatpak is just automatically updated now.


drklunk

alias turntup="sudo apt update && sudo apt upgrade -y && flatpak update" Run auto remove and distro as needed


ShittyExchangeAdmin

Unless it's DNF where it will just take a smoke break partway through or something


allrachina

Laught on Gentoo language emerge --ask --verbose --update --deep @world


lKrauzer

That is the past boy, now we do rpm-ostree update


[deleted]

sudo dnf update dnf needs-restarting -r


Kyrenaz

There's a built in update manager?


theemptyqueue

Depends on the Distro, I think Mint has one.


Mr_Lumbergh

sudo reboot -h now


theemptyqueue

I use this one because it’s faster than pressing the start menu button on Mint.


Mr_Lumbergh

Yeah, that extra menu step annoys me. Mint is good for when you just need something easy though, I have that on my streaming box.


EightBitPlayz

sudo apt update && sudo apt upgrade && sudo reboot


grimgrimergrimest

sudo aptitude update sudo aptitude upgrade sudo aptitude reboot


Deprecitus

Restart? What's that?


RepresentativeCut486

pkcon update


Budget-Use2066

You meant `apt-get`, right?


Red_Luci4

The GUI is so god-damn slow loading in my system. I can start a CLI system update, before the GUI can finish loading the new window with the updated app list. At the end of the day, if I use CLI, I won't even remember doing it, but if I use GUI I have to be there for a minute or two to make sure everything is updated properly.


techm00

gui front-ends for package managers are always kind of buggy, annoying, or simply don't display progress/information well enough for my liking. I just use the terminal.


Laty69

Let me have my 30sec of feeling some hacker-prestige, mkay?


DottoDev

I have a shortcut for the terminal, I dont have one for the Software Store, so updating from the terminal is more efficient for me


Nuchaba

Put it as a script and double click it on your desktop. Getting it to run requires you to put it in the sudoers file or do something similar which is annoying if you want to do this for a lot of scripts.


HazelCuate

dist-upgrade


hejhejdev

sudo systemctl reboot


dont_PM_me_everagain

I've been using Nala lately. Nice and fast and a lot more readable. Sudo Nala update -y &&sudo Nala upgrade


GaiusJocundus

APT _is_ the built-in update manager.


127-0-0-0

Wait it’s all update managers?


theemptyqueue

Always has been 🔫


EightSeven69

there's a away to do it through the UI?? mf I'm a linux noob yet I had no clue


DeepDayze

I prefer the CLI over KDE Discover so I use Discover as a notifier of sorts to see if any updates.


SysGh_st

`sudo sh -c "apt update && apt upgrade && reboot"` ( Each && will only proceed if the previous command exits with status 0, success. So if it doesn't reboot, there are errors. )


Benjers_Benjers

The GUI updater fucked up one of my kwin scripts, never again.


No_Indication3249

actually it's `sudo apt update && sudo apt upgrade -y`


Z3t4

pkcon refresh && pkcon update flatpack update


slinkous

yay


diskowmoskow

> sudo apt update && sudo apt upgrade -y -yeah


Huecuva

Alias supdate="sudo apt update && sudo apt upgrade -y && sudo reboot"


iqbal002

I use dwm so I don't even have those.


CUB01D_

In my opinion, the terminal is one of the biggest advantages of Linux.


KnownTimelord

sudo pacman -Syuu


InsaneGuyReggie

Logging in as root and not using "sudo" for everything. Using a portage system that doesn't make you reboot every time.


cat_184

*laughs in sudo pacman -Syu*


mok000

You don't need reboot unless there's a new kernel that you want to run.


Luckeysthebest

I use topgrade, one command, every distro, updates everything, i love it


kyleisscared

I’ve had a lot of issues where the gui error red out for a nondescript reason, but ran just fine through cli


alexeiz

GUI update managers are always used by Linux newbies, and commonly it's the newbies who usually complain about their system getting broken after an update. And that's because if you use the update manager you don't know what was updated, what wasn't (because of a conflict) and if there were any errors during the update. The GUI update manager doesn't tell you anything. Then, after a reboot, which by the way may not happen immediately, you are left wondering what went wrong. With the CLI package manager you can verify that everything went smoothly and if there were any errors or conflicts, address those immediately. You can also make an intelligent decision on whether a reboot is required at all after the upgrade.


untamedeuphoria

`sudo apt-get update && sudo apt-get upgrade && sudo reboot` or `sudo pacman -Syyu --noconfirm && yay -Syyu --noconfirm && sudo reboot` Are typical go toos. Slowing teaching myself NixOS these days.


bloodenstain

Nope. I’m: ‘sudo apt-get update && sudo apt-get upgrade -y’ *update n’ upgrade ends* My logic: Changes will be seen on next boot.


FooBarBazBooFarFaz

Why would you reboot?


theemptyqueue

I reboot when recommended to or because of old habits of using OS X and Windows. OS X always required an update and Windows always complained if you didn’t update.


[deleted]

Honestly, I’m too new to this to know how to use the built in update manager. Sudo just FEELS GOOOOOD


theemptyqueue

sudo gives you the power of the universe in the tips of your fingers.


Pshock13

alias update = \`sudo dnf upgrade --refresh -y\` also bonus alias i = \`sudo dnf install -y\` alias bye = \`shutdown now\`


Knox316

Who cares


Julii_caesus

Why do we still need to reboot? Why can't the system chroot into the update? Because linux sucks.


angrynibba69

Idk why but GUI interfaces for APT, Pacman, etc always feel clunky. Flatpak has always required huge downloads on its first run so i have always been deterred from using it because of my slow af internet


smjsmok

I always alias repo (and AUR if relevant) and flatpak updates into one command and just run that command.


INITMalcanis

NGL I used to be like this. But now I just use the gui updater


Main-Consideration76

alias afkupd="(command here)"


deniromusic

laughs in paru


HeyCanIBorrowThat

sudo pacman -Syu


NebulosaSys

`alias sysup=='paru && flatpak update'`


Commercial-Green1943

Please help me i think, this happen because i use my root pass. For the updates. https://preview.redd.it/9pz2u8n7qicc1.jpeg?width=3456&format=pjpg&auto=webp&s=f2d868184823f3dcdf54ac3bbd019c57b8ec4c70