32

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

Braiam
  • 67,791
  • 32
  • 179
  • 269
vrcmr
  • 6,307
  • 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 06:02

3 Answers3

30

search for it using

apt-cache search name

like

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)

skierpage
  • 313
Lincity
  • 25,371
11

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.

Takkat
  • 142,284
4

If you're trying to remove a package

apt search transmission | grep installed

will only display installed packages

skierpage
  • 313
Asdeth
  • 41
  • 4
    Welcome to Ask Ubuntu! I recommend to [edit] this answer to expand it with specific details about what this command does. A plain command or command sequence is rarely considered an answer. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) – David Foerster Oct 17 '17 at 07:40
  • Best answer, replace transmission with something of the name of your app and wuolah – newalvaro9 Jun 26 '23 at 00:22