Wheezy remove programs


9 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: 2012
Joined: Tue Jun 19, 2012 9:46 pm
Location: Staffordshire, UK
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: 2012
Joined: Tue Jun 19, 2012 9:46 pm
Location: Staffordshire, UK
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