27

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

3
  • 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
26

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)

7
  • I don't know why but the PACKAGE NAME transmission doesn't work.
    – vrcmr
    Mar 27 '11 at 13:45
  • 1
    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
  • 2
    apt-cache search is not suitable for listing installed packages.
    – Takkat
    Mar 27 '11 at 15:41
  • 2
    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
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.

3

If you're trying to remove a package

apt search transmission | grep installed

will only display installed packages

1
  • 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.) Oct 17 '17 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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