33

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, 2011 at 18:36
  • auto-complete doesn't work for me 10.10
    – vrcmr
    Mar 27, 2011 at 23:39
  • Are you sure? Have you tried with other package names, but ones you know are installed?
    – sashoalm
    Mar 28, 2011 at 6:02

3 Answers 3

31

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)

8
  • 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, 2011 at 13:48
  • 2
    You can also try dpkg -l|grep -i transmission to locate package names associated with it.
    – Jamess
    Mar 27, 2011 at 14:19
  • 2
    apt-cache search is not suitable for listing installed packages.
    – Takkat
    Mar 27, 2011 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, 2011 at 23:37
  • 1
    Thanks for the help
    – Zedd
    May 30, 2022 at 10:02
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.

4

If you're trying to remove a package

apt search transmission | grep installed

will only display installed packages

2
  • 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, 2017 at 7:40
  • Best answer, replace transmission with something of the name of your app and wuolah
    – newalvaro9
    Jun 26, 2023 at 0:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .