Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
620hun81886y@cobolplz tried it... I made a systemd service, but it doesn’t trigger on shutdown, only works when I manually restart it
-
C0D4669026yAlias turnoff=‘sudo apt upgrade -y && sudo shutdown now’
🤷♂️
Sometimes it’s not that hard. -
Kali Linux has this integrated, I guess it is included in some Gnome tools (it will even ask you: "Important software updates: Install & restart?").
-
620hun81886y-The computer is being shut down
-My script runs
-The computer proceeds with the shutdown process
This is what I want to achieve -
Few posts make me want to downvote. Incidentally, I'm a Windows and Linux user that wants to dump Windows permanently but can't because of work.
-
620hun81886y@Krokoklemme that doesn’t do what I want, see my comment above, replying to someone who said exactly what you said
@NeedsMoreDivs I use both, and Windows does updates better than Linux (actually, I like how Snap updates in the background). I don’t want to have to deal with updates. -
@620hun not wanting to deal with them definitely does not make them better.
But at least when there are updates for Linux, you can see what specifically is being updated and update as little or as much as you want at 1 time -- when you want to. -
620hun81886y@NeedsMoreDivs it does for me. I couldn’t care less what’s being updated most of the time, I’m not doing anything critical on my laptop.
How do I run an APT update right before shutdown? I want my Ubuntu to auto-update like Windows 😛
question