Find which package contains a file in Debian Linux. Find which package. Debian Linux. If you know you need to find a particular file to finish a. And you don't know which package it is contained. You have the following option in debian.
Replacing strings in files based on certain search criteria is a very common task. How can I replace string foo with bar in all files in the current directory? do the same recursively for sub. H ow do I recursively search all text files for a string such as foo under UNIX / Linux / *BSD / Mac OS X shell prompt? You can use grep command or find command as follows. grep command: Recursively Search All Files For A.
APT package searching utility - - command- line interfaceapt- file is a command line tool for searching packages for the. APT packaging system. Unlike apt- cache, you can search in which package a file is. Install apt- file in debian#apt- get install apt- filethis will install the apt- file package now.
Once installed you'll need to download the actual data which it. This can be accomplished with the following. Once you've downloaded data you can now proceed to searching for. Configuration options: -- sources- list - s < file> sources. Cache directory- -architecture - a < arch> Use specific architecture- -cdrom- mount - d < cdrom> Use specific cdrom mountpoint- -package- only - l Only display packages name- -fixed- string - F Do not expand pattern- -ignore- case - i Ignore case distinctions- -regexp - x pattern is a. Show this. help.- -version - V Show version.
Action: update Fetch. Contents files from apt- sources. Search files in packageslist < pattern> List files in.
Remove cache files. Example#apt- file search perl.
Apache. 2/mod_perl. Embperl. pmlibembperl- perl: usr/lib/perl. Embperl/Recipe/Embperl. Embperl/Syntax/Embperl.
HTML/Embperl. pmliblog- log. Log/Log. 4perl. pmlibsdl- perl: usr/lib/perl.
SDL_perl. pmperl- modules: usr/share/perl/5. Ext. Utils/Miniperl. You can also use one of the following commands to Finding which. L < package name> dlocatefast alternative to dpkg - L and dpkg - Suses GNU locate to greatly speed up finding out which package a. S). many other uses. Install dlocate in debian#apt- get install dlocate.
Usage: dlocate [option] [string..]Options: (no option) string list all records that match- S string list records where files match- L package list all files in package- l package almost- emulation of 'dpkg - l'- s package print package's status- ls package 'ls - ld. F' of all files in package- du package 'du - sck' of all files in package- conf package list conffiles in package- lsconf package 'ls - ld.
F' of conffiles in package- md. The - L, - s, and - S commands are roughly analagous to the. Example#dlocate - S /etc/bash_completionbash: /etc/bash_completion. Debian package management front end. Wajig is a single commandline wrapper around apt, apt- cache. With a suitable sudo(1) configuration, most (if not all) package.
Wajig is also suitable for general system administration. A Gnome GUI command 'gjig' is also included in the package. Install wajig in Debian#apt- get install wajig. Using wajig#wajig. JIG> help. Common JIG commands: update Update the list of down- loadable packagesnew List packages that became available since.
List packages newly available for upgradinginstall Install (or. Remove one or more packages (see also. List packages with newer versions available for. Upgrade all of the installed packages or just.
List the files that are. List all known packages or those containing. For each package named obtain a one line. Find the package that supplies the given command.
Run LIST- COMMANDS for a complete list of commands. Example. JIG> whichpkg alsamixer. File Path. Package===========================================================- =====. README. alsamixer alsa- utils/usr/share/man/man.
JIG> auto- aptpackage search by file and on- demand package installation toolauto- apt checks the file access of programs running within its. This feature requires apt and sudo to. It also provides simple database to search which package.
Install auto- apt in Debian#apt- get install auto- apt. After installing you need to update the package list using the. If you want to use auto- apt follow this syntax#auto- apt$Id: auto- apt. Exp $Usage: auto- apt [options] command [arg ..]auto- apt is a simple command line interface for setting up. Commands: run - Enter auto- apt environment run [command [cmdarg]]update - Retrieve new lists of Contents (available file list).
Regenerate lists of Contents (available file list. Generate installed file lists update- localmerge - Merge lists of Contents mergedel - Delete package list del packagecheck - Check which package will provide the filename check. List filelist in dbfile list [- v] [- f]search - Search package by filename (grep) search [- v] [- f]. Report current environments (auto- apt or not) For some commands, command name with - local suffix, it will use. Options: [- s] [- y] [- q] [- i] [- x] [- X][- a dists] [- p hooks][- D pkgcontents.
F pkgfiles. bin] [- L detect. Example#auto- apt search alsamixerusr/lib/menu/gnome- alsamixer gnome/gnome- alsamixerusr/lib/menu/alsamixergui sound/alsamixerguiusr/bin/gnome- alsamixer gnome/gnome- alsamixerusr/bin/alsamixergui sound/alsamixerguiusr/bin/alsamixer sound/alsa- utilsusr/share/pixmaps/gnome- alsamixer/ gnome/gnome- alsamixerusr/share/doc/alsamixergui/ sound/alsamixerguiusr/share/doc/gnome- alsamixer/ gnome/gnome- alsamixer.