I recently installed a program using the terminal command sudo apt-get install, and I want to locate and use it, and delete it. (I only did it as a test and had no actual use for the file). Where can I locate the program now?

marked as duplicate by Braiam, Pandya, mikewhatever, Radu Rădeanu command-line Sep 26 '14 at 8:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


To locate it it, use the following command :

dpkg -L package_name

Alternatively, you can search it in Unity by pressing the launcher and typing the name of the application or package you installed. To run it as a normal user, open the terminal and type in the application name, that is, the command of the application. As an example, to run rhythmbox music player, you just opn the terminal and type in rhythmbox, and it will open.

To uninstall an application, you need aministrative priviledges, hence the need to use sudo in a command line. In uninstalling, open the terminal and type in

sudo apt-get remove application_name

and the applicaton will be removed. To remove everything that was added to the machine, including the installation folders and cache files, use :

sudo apt-get purge application_name

  • And how can I use it? – CENTAUR Sep 25 '14 at 16:12

If you want to find the path of a binary you can use

which <your_binary_file>

for e.g.

[guru@guru-pc:~]$which google-chrome

You can use dpkg -L package_name to find the location of all the files related with that package.

From man dpkg

-L, --listfiles package-name...
                  List files installed to your system from package-name.

But if you want to remove any package you should use

 sudo apt-get remove package_name



If you installed it using:

sudo apt-get install programName

You can remove it using:

sudo apt-get remove programName

That will remove the application (but might keep a few configuration files. If you want to completely remove it, use purge instead of remove).

If you want to manually delete the files that it downloaded, or if you just want to know "where" its files got installed, I believe you can do dpkg -L programName.


You could use the Synaptics Package Manager. To install it, run

sudo apt-get install synaptic

in a command line.

You should be able to find your package here.

  • 1
    Perhaps consider adding to your answer how one could use synaptic to remove an unwanted package.? – jmunsch Sep 24 '14 at 18:35

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