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.

Hello I want to remove software (for example transmission) using Terminal. How can i find the package name for the software ?

share|improve this question
    
Do you know about the auto-complete feature in apt-get? If you enter 'apt-get remove tra', and then press tab twice, it will show all the packages starting with tra. –  sashoalm Mar 27 '11 at 18:36
    
auto-complete doesn't work for me 10.10 –  vrcmr Mar 27 '11 at 23:39
    
Are you sure? Have you tried with other package names, but ones you know are installed? –  sashoalm Mar 28 '11 at 6:02
add comment

2 Answers 2

up vote 6 down vote accepted

search for it using

sudo apt-cache search name

like

sudo apt-cache search transmission

gives:

conkytransmission - Transmission torrent info, for use in Conky

transgui - Remote GUI for Transmission daemon

transmission - lightweight BitTorrent client

transmission-cli - lightweight BitTorrent client (command line interface)

transmission-common - lightweight BitTorrent client (common files)

transmission-daemon - lightweight BitTorrent client (daemon)

transmission-gtk - lightweight BitTorrent client (GTK interface)

transmission-qt - lightweight BitTorrent client (Qt interface)

at the last (the most relevant results will be at the last since it is the terminal)

share|improve this answer
    
I don't know why but the PACKAGE NAME transmission doesn't work. –  vrcmr Mar 27 '11 at 13:45
    
My question was: How can I find the PACKAGE NAME of an application for further removing it by typing its name in terminal? –  vrcmr Mar 27 '11 at 13:48
2  
You can also try dpkg -l|grep -i transmission to locate package names associated with it. –  Jamess Mar 27 '11 at 14:19
    
apt-cache search is not suitable for listing installed packages. –  Takkat Mar 27 '11 at 15:41
1  
This is CRAZY!!! to many editors. Are you able to look into edit history? I should ask question and make screenshot of it. And then upload it here:) The original question was a little bit different. –  vrcmr Mar 27 '11 at 23:37
show 2 more comments

To query installed packages we can use powerful search functions from DPKG package management:

  • dpkg-query --list 'pattern*' lists all packages that have not been purged
  • dpkg-query --search 'pattern*' searches for individual files installed

You can use wildcards in the search pattern to find packages when only part of the package name is known.

share|improve this answer
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.