Apt get which provides
It's also linked up to the main packages list which will list descriptions, bugs, etc. All in all a good website. Not as useful from the command line, but still quite useful. You can change 'suite' it from unstable to stable or testing if you like, for other versions of the distribution. Wajig is a handy command line or console tool which wraps all the apt-get, dpkg goodness that you never wanted to learn.
You'll have to scroll down a bit to find the "Search the contents of packages" searchbox where you can enter the path of a file. The command-not-found package gives you hints about potential commands and the name of the debian package. It works by typing the command in the bash shell and looking at its output.
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. Asked 12 years, 3 months ago. Active 6 years, 11 months ago. Viewed k times. Improve this question. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Frequently I know the name of the command line program that I need but I don't know the name of the package that provides the program. How do I find the name of the package that contains the program that I need?
Is there anything similar for Debian based systems? Ubuntu has a command-not-found utility which will tell you which package to install to get a specific command. If configured correctly perhaps in the default install? However, you can also run it manually:. Ubuntu, as does Debian, comes with the apt-file application. This allows you, quite similar to apt-get, to just search for files in packages. And there you go. If you're lucky, you can also use the interface at the bottom of the Debian packages site.
Install is used to install packages by name. The package is automatically fetched and installed. This can be useful if you already know the name of the package to install and do not want to go into a GUI to select it.
Any number of packages may be passed to install, they will all be fetched. Install automatically attempts to resolve dependency problems with the listed packages and will print a summary and ask for confirmation if anything other than its arguments are changed. Dist-upgrade is a complete upgrader designed to simplify upgrading between releases of Debian. This is useful in case you want to find what package contains a file that you need to compile some program, etc.
The package needs to be available in the repositories for apt-file to be able to find it. To install it in Debian, Ubuntu, Linux Mint and other Debian-based or Ubuntu-based Linux distributions, use this command: sudo apt install apt-file This tool find the files belonging to a package by using a database, which needs to be updated in order to be able to use it. To do this, run: apt-file search filename Replacing filename with the name of the file you want to find. This command will list all occurrences of filename found in various packages.
However, if you know the file path, e. Consult its man page man apt-file and help for more information apt-file --help.
0コメント