Wheezy remove programs


12 posts
by scottnichols » Thu Oct 25, 2012 5:46 pm
Hello
Can programs be removed from Debain Wheezy. Such as the Python games or the web browsers.
And how would you do you this.

Thank You
scott
Posts: 9
Joined: Wed Oct 17, 2012 7:28 pm
Location: Upper NY State USA
by notarat » Thu Oct 25, 2012 6:32 pm
Removal commands
apt-get remove <package_name>This command removes an installed package, leaving configuration files intact.
apt-get purge <package_name>This command completely removes a package and the associated configuration files. Configuration files residing in ~ are not usually affected by this command.
+ operator
If you want to remove package1 and install package2 in one step:

apt-get purge remove <package1> <package2>+.
apt-get autoremoveThis command removes packages that were installed by other packages and are no longer needed.
apt-get autoremove <package_name>This command removes an installed package and dependencies.
While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.
Posts: 106
Joined: Wed Sep 12, 2012 12:32 pm
by scottnichols » Thu Oct 25, 2012 6:48 pm
notarat wrote:Removal commands
apt-get remove <package_name>This command removes an installed package, leaving configuration files intact.
apt-get purge <package_name>This command completely removes a package and the associated configuration files. Configuration files residing in ~ are not usually affected by this command.
+ operator
If you want to remove package1 and install package2 in one step:

apt-get purge remove <package1> <package2>+.
apt-get autoremoveThis command removes packages that were installed by other packages and are no longer needed.
apt-get autoremove <package_name>This command removes an installed package and dependencies.
While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.


notarat thanks for getting back to me. One other question how do I find the exact name of the the package so I am able to use the apt-get autoremove <package_name>
scott
Posts: 9
Joined: Wed Oct 17, 2012 7:28 pm
Location: Upper NY State USA
by notarat » Thu Oct 25, 2012 7:56 pm
right-click the program's icon and select properties

The name of the executable should be listed. That's the name to plug into the apt command
Posts: 106
Joined: Wed Sep 12, 2012 12:32 pm
by furqan6718 » Sun Dec 14, 2014 4:31 pm
Hi guys but when I do this.THis is What I get:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I cannot remove my apps please help!

Thanks
Posts: 7
Joined: Sun Nov 16, 2014 4:04 pm
by DirkS » Sun Dec 14, 2014 4:42 pm
The solution is in the message: 'are you root?'.
You need root permissions to install / remove programs.
Run it with 'sudo'.

Gr.
Dirk.
Posts: 3424
Joined: Tue Jun 19, 2012 9:46 pm
Location: In the woods of the South Downs NP
by furqan6718 » Sun Dec 14, 2014 6:10 pm
Please tell me how?
Posts: 7
Joined: Sun Nov 16, 2014 4:04 pm
by DirkS » Sun Dec 14, 2014 6:28 pm
furqan6718 wrote:Please tell me how?

For example:
Code: Select all
sudo apt-get purge programname


See also http://www.raspberrypi.org/documentatio ... /README.md (section SUDO)
Posts: 3424
Joined: Tue Jun 19, 2012 9:46 pm
Location: In the woods of the South Downs NP
by furqan6718 » Fri Dec 19, 2014 6:36 pm
THanks this has solved my problem!
:)
Posts: 7
Joined: Sun Nov 16, 2014 4:04 pm
by maty87 » Sat May 02, 2015 10:25 pm
tried all with root and via the root terminal but just get cant find
Posts: 4
Joined: Thu Apr 23, 2015 9:18 pm
by kusti8 » Sat May 02, 2015 10:35 pm
maty87 wrote:tried all with root and via the root terminal but just get cant find


Can you elaborate? Just can find what? The package name?
There are 10 types of people in the world. Those that understand binary and those that don't.

A proud Estonian speaker! :)
User avatar
Posts: 984
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA
by klricks » Sun May 03, 2015 4:34 pm
You can use a package manager to find and delete installed programs.
The Aptitude PM is already installed in Raspbian by default:
Code: Select all
sudo aptitude


Or install Synaptic for a GUI PM.
Code: Select all
sudo apt-get update
sudo apt-get install synaptic
Go here for my RPi writeup. Basic config, Serial Port add-on etc:
http://home.budget.net/~klricks/Comp/RPi/Rpi.html Click web icon on right side --->
Posts: 2234
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA