33

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

Braiam
  • 69,112
vrcmr
  • 6,397

3 Answers3

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)

skierpage
  • 313
Lincity
  • 25,749
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
  • 144,580
4

If you're trying to remove a package

apt search transmission | grep installed

will only display installed packages

skierpage
  • 313
Asdeth
  • 41