[solved] uninstalling files completely

User created HOW-TOs, guides and workarounds.

Moderators: aysabzevar, mandog, alan, bkashaf, xet7, cmost, blix

[solved] uninstalling files completely

Postby lawmanuk » Mon Aug 11, 2008 3:17 pm

Hi,

I've noticed that when i install a program, it will suggest all dependencies to me for installation.

however, this does not work in reverse. If i uninstall the same file, it doesn't remove all it's dependencies (even if unused by other programs). I have to try to remove a base dependency that the layers above require, to get suggestions of all files that need removing.

is there a sure fire way to remove all files associated with a program?

also - i think a mint feature would be great. they permit you to remove programs by right clicking their menu entry.

thanks
Last edited by lawmanuk on Tue Aug 12, 2008 11:59 pm, edited 1 time in total.
lawmanuk
Parsix Lover
 
Posts: 148
Joined: Fri Aug 08, 2008 7:34 pm

RE: removing files completely

Postby xet7 » Mon Aug 11, 2008 3:39 pm

This info is originally from this wiki page:

Updating Parsix, removing not needed files and installing software
http://www.parsix.org/html/index.php?mo ... tingParsix

So here's how to uninstall everything unneeded, example is previous kernel, but you can use any other package.

In Root Terminal:
Code: Select all
apt-get --purge remove linux-image-2.6.24-parsix-22
apt-get clean
apt-get autoremove
dpkg -P `deborphan`
xet7
Forum Moderator
Forum Moderator
 
Posts: 205
Joined: Wed Feb 20, 2008 12:22 pm
Location: Finland

Postby lawmanuk » Wed Aug 13, 2008 5:01 pm

the last line doesn't work

dpkg -P `deborphan`

what should this be?
lawmanuk
Parsix Lover
 
Posts: 148
Joined: Fri Aug 08, 2008 7:34 pm

Postby mandog » Wed Aug 13, 2008 6:39 pm

Try dpkg -P deborphan
Parsix running AMD FX(tm)-6100 Six-Core Processor, Gigabyte mother board 8gb ram, Nvidia graphic card 1gb unboard ram, Plextor PX760, EPSON R300, 2x 500gb hds, sata+3x 500gb, 1x2tb Hardrives, 23" AOC monitor 1980X1080 Resolution
mandog
Forum Moderator
Forum Moderator
 
Posts: 483
Joined: Fri Jan 25, 2008 3:08 pm
Location: Peru

Postby xet7 » Thu Aug 14, 2008 12:20 am

lawmanuk:
Yes that is exactly correct code, but when copying and pasting to command line, after that command it inserts one extra space character, which makes the whole thing fail. If you remove that extra space from the end, it works like this:

Code: Select all
# dpkg -P `deborphan`
(Reading database ... 146208 files and directories currently installed.)
Removing libisc32 ...
Purging configuration files for libisc32 ...


Don't try mandog's version, because it removes package deborphan like the following. Yes this has also happened to me before too:

Code: Select all
# dpkg -P deborphan
(Reading database ... 146208 files and directories currently installed.)
Removing deborphan ...
Purging configuration files for deborphan ...
Processing triggers for menu ...
Processing triggers for man-db ...


So, now package deborphan needs to be installing again:

Code: Select all
# apt-get install deborphan
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu       
Luetaan tilatiedot... Valmis       
Seuraavat UUDET paketit asennetaan:
  deborphan
0 päivitetty, 1 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.
Noudettavaa arkistoa 73,0kt.
Toiminnon jälkeen käytetään 418k t lisää levytilaa.
Nouda:1 http://packages.parsix.org boss/main deborphan 1.7.24 [73,0kB]
Noudettiin 73,0kt ajassa 0s (122kt/s)
Selecting previously deselected package deborphan.
(Reading database ... 146178 files and directories currently installed.)
Unpacking deborphan (from .../deborphan_1.7.24_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up deborphan (1.7.24) ...
Processing triggers for menu ...
xet7
Forum Moderator
Forum Moderator
 
Posts: 205
Joined: Wed Feb 20, 2008 12:22 pm
Location: Finland

Postby lawmanuk » Thu Aug 14, 2008 1:03 am

i had to install deborphan, as it wasn't installed.

then your initial line removing the space worked fine.

thanks
lawmanuk
Parsix Lover
 
Posts: 148
Joined: Fri Aug 08, 2008 7:34 pm


Return to HOW-TOs - English

Who is online

Users browsing this forum: No registered users and 1 guest

cron