honda4life
Posts: 75
Joined: Thu Mar 15, 2012 7:27 pm

A way to uninstall packages?

Sun Jul 01, 2012 12:39 pm

Hi everyone,

I want to keep my install as clean as possible.
How can I do that?
I've compiled a few programs and needed some additional libraries installed.
So far so good, but I've installed some not needed packages too.
A kind of "package snapshot program" should do the trick.
Now I have 2 sd cards, one for testing and compiling until it works, and another one for final installation.
There must be another way to do this I think.

Thank you!

User avatar
Robert_M
Posts: 211
Joined: Fri Nov 25, 2011 12:50 am

Re: A way to uninstall packages?

Mon Jul 02, 2012 3:00 am

The way I discovered to do this, earlier today, is to use this code:

Code: Select all

sudo apt-get --purge remove <package>
Where <package> is the name of the package you want to uninstall.

I was trying out alternate pdf readers (from the included MuPDF in Wheezy) and used this code to ditch the alternative I decided I didn't want to use.

As far as a "snapshot" function, someone else will have to address that! :-)
I sometimes ride my Pi to the Forum.

rasbeer
Posts: 242
Joined: Wed Mar 07, 2012 8:35 am

Re: A way to uninstall packages?

Mon Jul 02, 2012 7:05 am

Is this the snapshot thing you're after:
http://wiki.debian.org/AptOnCd
or this
http://wiki.debian.org/AptZip

Also apt saves the .deb files in /var/cache/apt/archives . I think you can just copy them to somewhere else and reinstall with dpkg -i. But I'm not sure if/how that handles dependencies :?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A way to uninstall packages?

Mon Jul 02, 2012 7:53 am

Its called checkinstall.
http://asic-linux.com.mx/~izto/checkinstall/
Finally. I found it. Took some time to rack my brain.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: A way to uninstall packages?

Thu Jul 12, 2012 11:09 am

Depending on what it is you want to do, you may find http://www.ubuntugeek.com/clone-your-ub ... ation.html useful too.

Carbonera
Posts: 11
Joined: Wed Sep 05, 2012 5:21 pm

Re: A way to uninstall packages?

Mon Nov 12, 2012 9:40 pm

Now it works fine. The problem is the version of jre.
Thank you all.

User avatar
Super-Nathan
Posts: 67
Joined: Sun Jun 17, 2012 6:56 am
Location: South Korea
Contact: Website

Re: A way to uninstall packages?

Tue Nov 13, 2012 1:43 am

If you have uninstalled a lot of software you can check/delete orphans with

Code: Select all

sudo apt-get autoremove --purge
Just MAKE SURE That you double-tripple the list of stuff it finds.
echo "Something Useful" > /dev/null

Return to “Beginners”