Apt get where is installed
It answers the question, "what package provides this file? Use the command: apt-file update In order to use this command, the package apt-file must be installed on your system.
For more information on apt-get, apt-cache and dpkg consult their manual pages by using the man command. These manuals will provide a wider scope of information in addition to all of the options that you can use with each program. Example: man apt-get. Typical usage example I want to feel the wind in my hair, I want the adrenaline of speed. So let's install a racing game.
But what racing games are available? I see a game named "torcs". Let's get some more information on this game. But is this game not already installed on my computer? And what is the available version? Which repository is it from Universe or Main? In this example, it's straightforward "torcs" , but that's not always the case.
Hmmm, that game is cool. Maybe there are some extra tracks? Someone else will post the dpkg version to do this locally ;. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 7 years, 9 months ago. Active 7 years, 9 months ago. Another way of uninstalling packages is to use purge. The command is used in the following manner:.
Of course, you will be asked to override the existing configuration files when you install it again. Purge is particularly useful when you have messed up with the configuration of a program, when you want to completely erase its traces from the system and start afresh. You can use the command below to clear apt cache locally saved retrieved package files :. Another way is to use autoclean.
Another way to free up disk space is to use autoremove. It removes libraries and packages that were installed automatically to satisfy the dependencies of another installed package. If that package is removed, these automatically installed packages are useless in the system. This command removes such packages. This is a command-line way of cleaning a Linux system. There is more to apt-get, but this much should give you a pretty good start.
You can always look up the man pages to get more information. How do you like this guide to apt-get commands in Linux? Was it helpful to you and clear enough to understand? Your feedback will help in creating more such guides in the near future. Also a movie buff with a soft corner for film noir. Thank you very much! Extremely clear, to the point and helpful for me. Please log in again. The login page will open in a new tab.
On Linux Ubuntu where ought I look for this? As Matthew Flaschen notes above, you can get the source with "apt-get source", but that's like a wget -- it just puts it in your current directory.
Edited: I should note that for installed packages, dpkg -L packagename will get you the list of files. You'd want apt-file to be able to list the files in uninstalled packages, or to search packages for a given file. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. Ask Question.
0コメント