Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried

sudo apt-get --purge remove snipe2d

But I guess 'snipe2d' isn't the name of the game....so how do I find out what it is and how to put it into my terminal?

P.S. this is what it says when I put in the above code:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package snipe2d

EDIT: The official name of the game in question is: orbital eunuchs sniper

share|improve this question
    
What's the name of the package that you installed? –  MBraedley Jan 12 at 3:22
    
orbital eunuchs sniper –  Collin Blatt Jan 12 at 3:26
add comment

5 Answers 5

up vote 2 down vote accepted

If you installed the game in the Software Center, you can just:

  1. Go to the Software Center.
  2. Search for it using terms similar to what it was called in the Software Center (which is often not the same as the actual package name).
  3. Uninstall it in the Software Center.

You never even have to know what the package is called.

(This seems to address the actual goal in the question, though answers about searching packages would be good too.)

share|improve this answer
    
Yeah I did install it in Software Center...but i'm also new and I want to the hang of using the terminal. Thank You! –  Collin Blatt Jan 12 at 3:31
1  
@CollinBlatt take a look at Braim's answer... apt-cache is my favorite. –  arsaKasra Jan 15 at 7:36
add comment

If you did not use Software Center, use

dpkg -S $(which snipe2d)

See also my blog on dpkg: http://www.linuxintro.org/wiki/Dpkg

share|improve this answer
    
which is not required. Just dpkg -S snipe2d will work as well if you don't mind some more results. –  minerz029 Jan 14 at 20:44
add comment
  1. Open the Software Center page for the application.
  2. Scroll down to "Version".

    enter image description here

  3. The package name is the part before the first space in the version.
    In your case, it is orbital-eunuchs-sniper.

  4. You can then do whatever you want with it, e.g.:

    sudo apt-get remove orbital-eunuchs-sniper
    

Alternatively, if you know the path to a file which executes the application, you can also do

dpkg -S /path/to/file

This will print all packages which contain that file.

Example:

$ dpkg -S apt-get
bash-completion: /usr/share/bash-completion/completions/slapt-get
apt: /usr/bin/apt-get
apt: /usr/share/man/es/man8/apt-get.8.gz
bash-completion: /usr/share/bash-completion/completions/apt-get
apt: /usr/share/man/de/man8/apt-get.8.gz
apt: /usr/share/man/pt/man8/apt-get.8.gz
apt: /usr/share/man/pl/man8/apt-get.8.gz
apt: /usr/share/man/fr/man8/apt-get.8.gz
apt: /usr/share/man/man8/apt-get.8.gz
apt: /usr/share/man/ja/man8/apt-get.8.gz
share|improve this answer
add comment

I think you should have more luck using apt-cache search

apt-cache search snipe                 
esniper - simple, lightweight tool for sniping ebay auctions
orbital-eunuchs-sniper - anti-terrorist, pro-Eunuchs, satellite sniping game
orbital-eunuchs-sniper-data - game data files for the game Orbital Eunuchs Sniper

That will tell you all packages that has in it's description. Then you can do sudo apt-get remove:

sudo apt-get remove orbital-eunuchs-sniper orbital-eunuchs-sniper-data
share|improve this answer
add comment

You can install apt-file, which keeps a database of all the files every package provides, then you can use apt-file /path/to/snipe2d to see which package provides that file, which you can then remove with apt-get remove

share|improve this answer
1  
I think dpkg -S /path/to/snipe2d will be lot easier. –  Braiam Jan 12 at 4:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.