Removing soft from CLI

Asked by jacek

Hi Guys,

I have just installed AVG for Linux Workstation and would like to know how to remove it from the CLI. iIknow that the command is dpkg -r <package> but how do I know what is the name of the package that i should use? Is there a command to find this out that will specify this name? where by default all this downloaded and installed software is located, in which directory?

Also how can I remove other soft from CLI such as games, lango and others?

Thank you,
Jacek

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabián Rodríguez (magicfab) said :
#1

apt-cache search <text> will help you find it. Replace <text> with part or all of the software name.

You will then need to use
sudo apt-get remove <package>

For more information about applications management in Ubuntu, see:
https://help.ubuntu.com/8.10/add-applications/C/index.html

Revision history for this message
jacek (jacekb57) said :
#2

How can I remove the game lagno from CLI????

apt-cache search lagno does not find anything!!!!!

Revision history for this message
jacek (jacekb57) said :
#3

For example i tried to remove mines, but it does not work. how do I remove it from CLI????

jacek@jacek-desktop:/etc/apt$ apt-cache show mines.app
Package: mines.app
Priority: optional
Section: universe/games
Installed-Size: 156
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Debian QA Group <email address hidden>
Architecture: i386
Version: 0.1.0-4
Replaces: gmines
Depends: gnustep-back0.12 (>= 0.12.0), gnustep-base-runtime (>= 1.14.1), gnustep-gpbs (>= 0.12.0), gnustep-gui-runtime (>= 0.12.0), libc6 (>= 2.6.1-1), libgcc1 (>= 1:4.2.1), libgnustep-base1.14 (>= 1.14.1), libgnustep-gui0.12 (>= 0.12.0), libobjc2 (>= 4.2.1)
Conflicts: gmines
Filename: pool/universe/m/mines.app/mines.app_0.1.0-4_i386.deb
Size: 16486
MD5sum: 7cae9993d7582bac1758f6c76b19050c
SHA1: e20e73e901f9833c71f2c14f78faa1ef9f2021d5
SHA256: 7c5e5d8429c86ef1034b537d9a6395015398d0bc55b535e625ad9dad12402069
Description: Minesweeper for GNUstep
 Mines is the classic Minesweeper game for GNUstep. You must uncover all
 the empty cases without blowing on a mine.
 .
 When you uncover a case, a number appears: it indicates how many
 mines surround this case. If there is no number the neighbour cases
 are automatically uncovered. In your process of uncovering secure
 cases, it is very useful to put a flag on the cases which contain a
 mine.
Bugs: mailto:<email address hidden>
Origin: Ubuntu

jacek@jacek-desktop:/etc/apt$ sudo apt-get remove mines.app
[sudo] password for jacekb01:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mines.app is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libportaudio2 libwxgtk2.6-0 libxosd2 libwxbase2.6-0 liblua5.1-0 vlc-plugin-pulse libtar libqt3-mt winbind libadns1 wireshark-common libsdl-image1.2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jacek@jacek-desktop:/etc/apt$
jacek@jacek-desktop:/etc/apt$

Revision history for this message
Sam_ (and-sam) said :
#4

Did you read the manual which Fabian suggested?
https://help.ubuntu.com/8.10/add-applications/C/install-file.html#install-deb

sudo dpkg -r mines.app_0.1.0-4_i386.deb

Revision history for this message
jacek (jacekb57) said :
#5

yes sam, i did read it and that it what I mean. looks like those packages can not be removed from CLI. I first tried the package name mines.app as in the guide, and then i tried your method, which also did not help.

jacekb@jacekb-desktop:~$ sudo dpkg -r mines.app_0.1.0-4_i386.deb
[sudo] password for jacekb01:
dpkg: you must specify packages by their own names, not by quoting the names of the files they come in

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
jacekb@jacekb-desktop:~$

Revision history for this message
Sam_ (and-sam) said :
#6

Ok,
I thought you've installed manually a .deb package.
Now as I understand, mines (=gnomine) and iagno belong to the package gnome-games and as far as I've experienced can't be removed by each one.
We talk about the games which appear in the menu applications -> games, btw. those which shouldn't appear can be unmarked within the main menu.
## A search in Synaptic will show the list of games included in 'gnome-games'.
So to remove all the games would be:
sudo apt-get remove gnome-games

Can you help with this problem?

Provide an answer of your own, or ask jacek for more information if necessary.

To post a message you must log in.