Note: in the following commands, a command beginning with ‘root#’ means it needs to be run as root.
To find which files were installed by a package, use dpkg -L
:
$ dpkg -L $package
apt-file
can tell you which files will be installed by a package before installing it:
root# apt-get install apt-file
root# apt-file update
$ apt-file list $package
Or if you have the package as a .deb
file locally already, you can run dpkg
on it:
$ dpkg --contents $package.deb
To find which package provides a file that is already on your system, use:
$ dpkg -S /path/to/file
To find which package provides a file that is not currently on your system, use apt-file
again:
$ apt-file search /path/to/file
Related Posts:
- What does “debconf: delaying package configuration, since apt-utils is not installed” mean?
- Amazon Linux: apt-get: command not found
- Amazon Linux: apt-get: command not found
- What is difference between arm64 and armhf?
- Uncompress tar.gz file
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- Bash script prints “Command Not Found” on empty lines
- python-dev installation error: ImportError: No module named apt_pkg
- Anyone else experiencing high rates of Linux server crashes during a leap second day?
- How can I run Debian stable but install some packages from testing?
- What’s the best way of handling permissions for Apache 2’s user www-data in /var/www?
- How to install/change locale on Debian?
- How can I export the privileges from MySQL and then import to a new server?
- Is it possible to reboot a Linux OS without rebooting the hardware?
- What should I do when I got the KEYEXPIRED error message after an apt-get update?
- What is the debian-sys-maint MySQL user (and more)?
- How should an IT department choose a standard Linux distribution?
- Chmod 777 to a folder and all contents [duplicate]
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- Amazon Linux: apt-get: command not found
- How do I find all files containing specific text on Linux?
- Where can I find php.ini?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- How can I recursively find all files in current and subfolders based on wildcard matching?
- Linux: ‘Username’ is not in the sudoers file. This incident will be reported
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- mysql_config not found when installing mysqldb python interface
- Linux error while loading shared libraries: cannot open shared object file: No such file or directory
- Shell command to tar directory excluding certain files/folders
- QEMU: /bin/sh: can’t access tty; job control turned off
- Explaining the ‘find -mtime’ command
- Meaning of exit status 1 returned by linux command
- Creating a new directory in C
- Extract file basename without path and extension in bash
- How to change permissions for a folder and its subfolders/files in one step
- mv: cannot stat error : No such file or directory error
- mysql_config not found when installing mysqldb python interface
- Linux error while loading shared libraries: cannot open shared object file: No such file or directory
- Pseudo-terminal will not be allocated because stdin is not a terminal
- TCP congestion control version: HTCP module vs highspeed module in linux kernel
- How to use regex with find command?
- What is the difference between /etc/rc.local and ~/.bashrc?
- Snort Message – WARNING: No preprocessors configured for policy 0
- Compile the Fortran program in Windows using gfortran
- How can I set the ‘backend’ in matplotlib in Python?
- Yum fails with – There are no enabled repos.
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- configure: error: cannot run C compiled programs
- What does set -e mean in a bash script?
- How to make rpm auto install dependencies
- How do I install chkconfig on Ubuntu?
- Apache server keeps crashing, “caught SIGTERM, shutting down”
- List all mounts in Linux
- How to use sed to extract substring
- Wait for user input in C?
- tar: Error is not recoverable: exiting now
- How to enable Bash in Windows 10 developer preview?
- WordPress sites being filled with random PHP files
- how to properly mount external server directory for wordpress uploads
- Is it a good idea to edit WordPress within Eclipse? [closed]
- How can I sort du -h output by size
- What exactly do the colors in htop status bars mean?
- Showing total progress in rsync: is it possible?
- How to bind MySQL server to more than one IP address?
- How to setup passwordless `sudo` on Linux?
- How do I verify the speed of my NIC?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- How to remove the “installed manually” flag and revert to “automatically installed” with apt-get?
- how do you create an ssh key for another user?
- How can I monitor hard disk load on Linux?
- How do I get the history of “apt-get install” on Ubuntu?
- Why does sudo command take long to execute?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- How to display certain lines from a text file in Linux?
- What’s the reverse DNS command line utility?
- Can you have more than one ~/.ssh/config file?
- How to add a security group to a running EC2 Instance?
- list all packages from a repository in ubuntu / debian
- How bad is it really to install Linux on one big partition?
- How do I extract login history?
- How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?
- GPG does not have enough entropy
- SSH from A through B to C, using private key on B [closed]
- Why don’t EC2 ubuntu images have swap?
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- Does the “bs” option in “dd” really improve the speed?
- How to get TX/RX bytes without ifconfig?
- What solutions exist to allow the use of revision control for server configuration files? [closed]
- Curl: disable certificate verification
- Is there a way to do a remote “ls” much like “scp” does a remote copy?
- How to apply a filter to real time output of `tail -f `?
- Practical maximum open file descriptors (ulimit -n) for a high volume system
- Dump a linux process’s memory to file
- How to handle relative urls correctly with a reverse proxy
- What is the difference between /sbin/nologin and /bin/false?
- Where’s the conventional place to store git repositories in a linux file system tree?