Clean completely?

If none of the more specific forums is the right place to ask

Clean completely?

Postby pironman » 2018-05-17 06:55

Time ago I have installed chromium web browser, but then I remove it. All the operations via apt-get.
When I clean the PC via BleachBit, I see also chromium and other program that I don't have anymore in my PC.
That's mean that somethings of these programs remain in the PC? How can I clean it completely?

Thank you
pironman
 
Posts: 13
Joined: 2018-04-16 11:11

Re: Clean completely?

Postby Wheelerof4te » 2018-05-17 11:20

Code: Select all
apt purge packagename

In your case:
Code: Select all
apt purge chromium

This will remove the package and most of it's config files. But something will still remain.
To get rid of obsolete dependencies of all packages:
Code: Select all
apt autoremove

Keep in mind, if you are using GNOME or KDE, core metapackages of these DE's require either firefox-esr or chromium package installed. Otherwise most of your system will be flagged for autoremove.
Use autoremove command only on Stable, and only when you are absolutely sure you don't need those packages.
User avatar
Wheelerof4te
 
Posts: 999
Joined: 2015-08-30 20:14

Re: Clean completely?

Postby n_hologram » 2018-05-17 11:24

Code: Select all
apt-get clean
is another useful command.
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing

the crunkbong project: scripts, operating system, the list goes on...
n_hologram
 
Posts: 431
Joined: 2013-06-16 00:10

Re: Clean completely?

Postby None1975 » 2018-05-17 14:35

Hello. It is generally advisable to purge removed packages (purging a package will generally also purge its log files, so you might want to back them up first).
The following command displays a list of all removed packages that may have configuration files left on the system (if any):
Code: Select all
$ dpkg -l | awk '/^rc/ { print $2 }'

The packages can be removed by using apt-get purge. Assuming you want to purge all of them in one go, you can use the following command:
Code: Select all
# apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 470
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Clean completely?

Postby debiman » 2018-05-26 08:41

stuff in ~/.config and ~/.cache (and sometimes also ~/.local/share) still remains and has to be removed manually.
User avatar
debiman
 
Posts: 2396
Joined: 2013-03-12 07:18

Re: Clean completely?

Postby Lysander » 2018-05-26 13:49

debiman wrote:stuff in ~/.config and ~/.cache (and sometimes also ~/.local/share) still remains and has to be removed manually.


Yup, a recent

Code: Select all
rm -r .cache


cleared around 5GB.
User avatar
Lysander
 
Posts: 537
Joined: 2017-02-23 10:07
Location: London

Re: Clean completely?

Postby debiman » 2018-05-26 14:11

yes but please do NOT removed the complete .config and .local folders.
:mrgreen:
what i meant was manual research, e.g. the (uninstalled) chromium has a folder by that name in ~/.config etc.
User avatar
debiman
 
Posts: 2396
Joined: 2013-03-12 07:18

Re: Clean completely?

Postby llivv » 2018-05-26 16:39

there are a lot of reasons an install gets dirty, many of them beyond my pay grade.

dpkg
apt
apt-get
aptitude
synaptic
wajig
cupd - if available in the relaease being used

all do a near perfect job of cleaning umwanted cruft from a install (without breaking other installed packages).

Of course if you want to try to clean further -- (at your own risk) --- ) you can use other programs and personal methods to clean things up to better suit ones needs.

deborphan
debian.org/Packages - list all files

beware when treading in the deep end.
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5652
Joined: 2007-02-14 18:10
Location: cold storage


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable