Dpkg show files
Martin Prikryl And to avoid leaving the terminal, you can use e. Do i need ruby to run it? But I've rewritten it to use two sed commands, no Ruby required. This is the answer I was looking for — Anwar. PS: Above pipes does not work with ar command. George Vasiliou George Vasiliou 2 2 silver badges 4 4 bronze badges. This description works for systems that use only "apt" and don't have the older "apt-x" commands available!
You can also check the content without downloading the package file. If you don't know the URL, fetch by: apt --print-uris , e. Digger Digger 1 1 gold badge 1 1 silver badge 10 10 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 8. Related 8. Hot Network Questions. Question feed. Super User works best with JavaScript enabled. Accept all cookies Customize settings. As we mentioned earlier, dpkg also allows you to search for a particular file and find which packages contain that file. This functionality can be utilized by appending -S search flag with dpkg:.
If you know the address of the particular file that you are looking for, you can include it in the command to narrow down the results. One of the major advantages of using dpkg is that it can be used with packages that are not installed from any repositories.
Before we proceed any further, we first have to install the apt-file package itself. You can do that by running the command given below. It is good practice to update the database before moving on with the search. Now that everything is up and running, we initiate the search for our required packages. This can be done through the following command. If you want to search for a particular filename cairo. As was the case with dpkg, if you know the address of the file you are searching for, you can specify that too narrow down the search results.
That about covers all there is to using apt-file to find files in a package. However, if you wish to use apt-file to benefit further, the following help commands are for you. In this article, we have gone through various methods to get a list of the files in a package. Whether you prefer searching with GUI-based online resources or comfortable with the command-line interface, now you know how to get a list of files of any available package.
See this question for more. More specific to Ubuntu is the Ubuntu Server Guide , which will describe everything in enough detail. So many of the other guides gloss over too many of the details, but this should be better. The answer given by Gilles is very useful actually, the answer was improved over time. Furthermore, I have a tip for the ones that don't want to install any auxiliary package like the apt-file :. Here's one way to do it for packages you don't have installed yet.
Just change "autoconf" below for the package you are trying to get the list of files for:. Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically.
Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'. 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. How do I get a list of installed files from a package? Ask Question. Asked 10 years, 9 months ago. Active 2 years, 11 months ago. Viewed k times.
Improve this question.
0コメント