Open yuriw opened 4 years ago
Question 1 - I see Residual Config Files. How can then be cleaned?
You will have to apt purge pkgname
each one of them, even if they are uninstalled. apt
will then delete residuals. You can do it like this:
dpkg -l | grep '^rc'| awk '{print $2}' | xargs sudo apt purge
Myself, I usually simply purge
packages, I don't remove
them.
Question 2 I usually use
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get autoclean && sudo apt-get -y autoremove
Can this extension be set up to do this ?
Sure thing. Perhaps what I can recommend is that you save this as a script somewhere, and then you simply point the extension to the script. That's what I used to do.
(I am not on Gnome 3.36, I need to port the extension, and I've been short in time.)
@franglais125
clear on #1 thx! ( although it'd be nice to have a way to do it via the app )
on #2 - How do I "point the extension to the script" ? Example would be useful.
Agreed, it would be nice. Perhaps some time in the future I can work on a "Clean packages" button.
Script, as you proposed
my_apt_script.sh
:
#!/bin/bash
pkexec apt-get -y update && pkexec apt-get -y upgrade && pkexec apt-get autoclean && pkexec apt-get -y autoremove
/usr/bin
, make sure you have the proper permissions set up.sudo cp my_apt_script.sh /usr/bin/
sudo chmod 755 /usr/bin/my_apt_script.sh
In the settings, "Custom command to check for updates", now put "my_apt_script.sh".
Now, I've used pkexec
in the script above, as you won't be able to use sudo
(no where to put your password). pkexec
will ask for your password for every sub-command, which is annoying.
Decouple your update and upgrade process.
In "Custom command to check for updates", put: pkexec apt-get -y update
If there are updates, the extension will let you know, and you can then click on "Apply updates".
This will now call a custom script, which can be seen on a terminal to make sure your system won't break. (And you can use sudo
).
In the "Update method" setting, choose "Custom", and then click on the button next to it.
In the "Command to update packages", now use my_apt_script.sh
Use the "Show output on terminal" option
@franglais125 thx for details, I wanted to improve my packages' knowledge, and this is the step to the right direction :) (will try and it will keep me busy)
Nore: I see dangerous
note and hmm...
On pkexec
I never used it. Bu I have sudo
enabled not to ask for password, will it work ?
I'd recommend using /usr/local/bin
for non-system binaries.
See: https://unix.stackexchange.com/a/8658 and https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
I'd recommend using
/usr/local/bin
for non-system binaries.
Good point!
@franglais125 @PHLAK cool thx ! I got all setup, so itching to see new updates available to test :)
@franglais125 Worked great ! Thx
My task bar icon become red now, is it expected?
Can you send me a screenshot of that?
@franglais125
It was not like that before
It looks to me like a broken icon...
@franglais125 and the icon is back to normal today ! FYI
First of all - great extension !
Question 1 - I see Residual Config Files. How can then be cleaned?
Question 2 I usually use
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get autoclean && sudo apt-get -y autoremove
Can this extension be set up to do this ?Thx