Ubuntu Which Package Provides File?

Installing apt-file: You can easily find the name of the package which provides a specific file/executable on Ubuntu using apt-file. apt-file is available in the official package repository of Ubuntu 20.04 LTS. So, it’s very easy to install.

How do I find what package a file belongs to in Ubuntu?

How do I find what package a file belongs to in Ubuntu Linux. Assuming that you want to find out which package provides a file named /bin/bash in Ubuntu Linux. How to achieve it. And if you are working on the CentOS/RHEL Linux, you can use the rpm –qf command to check which package provide this file.

How to install apt-file tool in Ubuntu Linux?

In Ubuntu Linux system, you can use the dpkg –S or apt-file command to achieve the result. Just type the following command: You need to install apt-file tool with apt command under command line interface.

Which Ubuntu package provides a file?

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.

What package does a file belong to?

To show what files are in a package, use the rpm command. If you have the file name, you can turn this around and find the related package. The output will provide the package and its version. To just see the package name, use the –queryformat option.

How do I know which package provides a command?

Go to packages.ubuntu.com and follow your nose. In particular, scroll down to ‘Search the contents of packages’ and enter the file name or system command. Your resolution has a problem in that it will show the source of a package that is available from the default repository.

How do I view files in a deb package?

dpkg -c (or –contents ) lists the contents of a. deb package file (It is a front-end to dpkg-deb.) To work directly with package names rather than package files, you can use apt-file. (You may need to install the apt-file package first.)

Which package installed a file Debian?

You can also use dpkg-query command to find the package name for the installed file. You can use apt-file to look for files inside DEB packages on your system, as well as packages that aren’t installed on your Debian systems but are available via the repositories.

How do I find a package in Ubuntu?

In Ubuntu and Debian systems, you can search for any package just by a keyword related to its name or description through the apt-cache search. The output returns you with a list of packages matching your searched keyword. Once you find the exact package name, you can then use it with the apt install for installation.

Which rpm package provides a file?

Specifically, an RPM package consists of the cpio archive, which contains the files, and the RPM header, which contains metadata about the package. The rpm package manager uses this metadata to determine dependencies, where to install files, and other information. There are two types of RPM packages: source RPM (SRPM)

How do I find apt get packages?

To find out the package name and with it description before installing, use the ‘search’ flag. Using “search” with apt-cache will display a list of matched packages with short description.

What rpm package contains file?

There 2 commands which can help you find the rpm package from the file – rpm and yum. You can also find all the files included in a package with the rpm command.

What does yum provides do?

yum is the primary tool for getting, installing, deleting, querying, and managing Red Hat Enterprise Linux RPM software packages from official Red Hat software repositories, as well as other third-party repositories. yum is used in Red Hat Enterprise Linux versions 5 and later.

Where can I find dpkg packages?

The dpkg-query command can be used to show if a specific package is installed in your system. To do it, run dpkg-query followed by the -l flag and the name of the package you want information about. The example below shows how to check if the Steam package is installed.

What is the yum update command?

What is YUM? YUM (Yellowdog Updater Modified) is an open-source command-line as well as graphical-based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrators to easily install, update, remove or search software packages on a system.

Where is deb file in Ubuntu?

Deb packages are pretty much the same. You can find these deb packages in the download section of a software provider’s website. For example, if you want to install Google Chrome on Ubuntu, you can download the Chrome deb package from its website.

Where is deb file installed?

If you open a DEB and browse it, you’ll likely find files under the paths where they’ll end up once the DEB is installed. To open a DEB file you installed, assuming it is one that can be opened, you can either run the command for it in the terminal (Dolphin’s is probably dolphin ) or search for it.

Find Which Package Contains Specific File on Ubuntu 20.04 LTS

  1. The official package repository for Ubuntu contains a large number of products.
  2. Without knowing the specific package name of the software or utility you’re attempting to install, it might be quite difficult to locate the package you need to install it correctly.
  3. The task gets considerably more difficult if you need to figure out which package to install in order to obtain a certain file (for example, /etc/apache2/apache2.conf) or executable (for example, /usr/bin/netstat) under Ubuntu.
  4. In this post, I’ll teach you how to identify the precise name of the package that contains a certain file or executable on Ubuntu 20.04 LTS by using the apt-get command.
  5. So let’s get this party started.

Installing apt-file:

  1. You may quickly identify the name of the package that contains a given file or executable on Ubuntu by using the apt-file command.
  2. Apt-file is a package that can be found in the Ubuntu 20.04 LTS official package repository.
  3. As a result, it is quite simple to set up.
  4. First, use the following command to update the APT package repository cache: apt-get update-repository-cache After that, use the following command to install apt-file: install apt-file with sudo $ sudo apt install To confirm the installation, hit Y twice, followed by a second push.
  5. It is necessary to install apt-file.
  6. As you can see in the picture below, the apt-file command should now be accessible on your Ubuntu 20.04 LTS computer.

Updating apt-file Package Cache Database:

  1. The apt-file package cache database, just like the APT package manager, must be kept up to date to function properly.
  2. By running the following command, you can keep the apt-file package cache database up to date: The apt-file package cache is being updated at the moment.
  3. At this point, the apt-file package cache should be updated to reflect the latest changes.
  4. You are now prepared to search for packages using the apt-file command.

Searching for Packages using apt-File:

  1. Consider the following scenario: you need to create some program on your Ubuntu 20.04 LTS system, and you require the libpcre.so library file to do so.
  2. However, you are unsure about which software to install.
  3. You can easily search for packages that include the libpcre.so library file by using the following search parameters: search for apt-files with $ apt-file search ‘libpcre.so’ As you can see, the packages that include the libpcre.so library file are mentioned in the following section.
  4. The names of the packages are listed on the left-hand side (just before the colon:).
  5. On the right side (after the colon:), the entire file path (found in the package on the left side) that corresponded to the search word (libpcre.so in this example) is listed, followed by the colon: As you can see in the picture below, the package libpcre3-dev offers the library file libpcre.so, which is provided by the libpcre3-dev package.
  6. As a result, if you require the library file libpcre.so on your Ubuntu 20.04 LTS computer, you will need to install the package libpcre3-dev.

If you know a portion of the path to the file you’re looking for, you may use apt-file to search for packages that contain that portion of the path.Take, for example, the case when you wish to utilize the route command on your Ubuntu 20.04 LTS system, which is not installed by default by the system.You are aware that the route command is a command.As a result, it will most likely be located in the bin/ directory.

You may look for the package name that contains the route command using the following search criteria: $ apt-file search ‘bin/route’ |grep ″bin/route″ As you can see, the route command (/sbin/route) is part of the net-tools package, which is installed by default.Default settings allow for case sensitive search to be used.

As a result, while searching for files using apt-file, uppercase and lowercase letters are treated differently.Uppercase and lowercase letters are treated the same way in case insensitive search.libpcre.so and LibPcre.so, for example, are not the same when performing a case sensitive search.However, in the event of a case-insensitive search, the files libpcre.so and LibPcre.so are identical and will yield the same result.As you can see, the search for the LibPcre.so file yields no results as of yet.

  1. You may do a case insensitive search by specifying the -i option, which looks like this: $ apt-file search -i ‘LibPcre.so’ $ apt-file search -i ‘LibPcre.so’ As you can see, the identical result (libpcre.so) is returned as in the previous example.
  2. You may also search for package names by using a Regular Expression in conjunction with the file/directory path.
  3. NOTE: Regular Expressions are a topic in and of themselves.
  4. It is beyond the scope of this essay to discuss it further.
  5. If you want to learn more about Regular Expressions, you may read the rest of the articles on LinuxHint.

For example, suppose you wish to find the package that offers the file whose path ends in bin/route.You would search for the package that supplies the file that ends in bin/route.If you use the -x option, you may search for files that include Regular Expressions, as in $ apt-file search -x ‘ *bin/route$’ The $ denotes the end of the file, and the.* denotes that it can match anything.This implies that any path that ends with bin/route will be considered, regardless of what follows before it.As you can see, the product name is given exactly as it appears on the packaging.

Listing Package Contents using apt-file:

  1. Consider the following scenario: you are aware of the name of a package (i.e.
  2. net-tools).
  3. You’ll want to know what files and folders are included in this package before you install it on your computer, so you can prepare accordingly.
  4. This may be accomplished with the use of apt-file.
  5. For example, the following command may be used to display a list of the files and folders included under the package net-tools: $ apt-get list net-tools net-tools As you can see, the net-tools package has a complete listing of all of the files and folders.
  6. If you want to filter the output of the apt-file command, you may pipe it to a tool such as grep or egrep, which will filter the output according to your preferences.

Using the apt-file and grep commands, for example, you can find out what binary/executable file the net-tools package contains by running the following commands: $ apt-file list net-tools |grep bin/ $ apt-file list net-tools As you can see, the net-tools package includes a list of all of the binary/executable files that are available.In the same manner, you can check to see what configuration files a package (for example, apache2) includes by running the following command.$ apt-file list apache2 |

grep /usr/local/lib/apache2/

Installing Packages:

  1. As soon as you’ve determined which package contains the file(s) you’re looking for, you may install it by using the following command: $ sudo apt-get update Replace with the name of the package you intend to install in this section.
  2. Using this example, you might install the libpcre3-dev package by running the following command: install libpcre3-dev with sudo apt install libpcre3-dev To confirm the installation, hit Y twice, followed by a second push.
  3. libpcre3-dev should have been installed, and you should be able to access the file you requested (s).
  4. So, that’s how you find out which packages contain the file you’re looking for and then install it on Ubuntu 20.04 Long Term Support.
  5. Thank you for taking the time to read this article.

About the author

Freelance Linux System Administrator and freelancer. Additionally, he enjoys developing Web APIs with Node.js and JavaScript. Bangladesh is where I was born. As a part of my undergraduate studies, I am enrolled in Khulna University of Engineering and Technology (KUET), which is considered to be one of the most difficult public engineering universities in Bangladesh.

Ubuntu Find out Which Package That Provides a File

This post will show you how to determine which package in the Ubuntu operating system is responsible for providing a specific file. What is the best way to determine which package a file is associated with in Ubuntu Linux?

Ubuntu Find out Which Package That Provides a File

  1. Assume that you want to know which package in Ubuntu Linux supplies a file with the name /bin/bash and that you want to know how to find out.
  2. What to do in order to attain that.
  3. In addition, if you are working with the CentOS/RHEL Linux operating system, you may use the rpm –qf command to determine whether packages include this file.
  4. To achieve the desired outcome in the Ubuntu Linux system, you may use the dpkg –S or apt-file commands, respectively.
  5. All you have to do is type the following command: dpkg –S wget is a command line option.
  6. As a result of the command:/dpkg -S wget language-pack-en-base: /usr/share/locale-langpack/LC MESSAGES/wget.mo, the following output is obtained: wget: /usr/share/doc/wget/NEWS.gz wireless-tools: /usr/share/man/man8/iwgetid.8.gz wget: /usr/bin/wget wireless-tools: /usr/share/man/man8/iwgetid.8.gz Language-pack-en-base: /usr/share/locale-langpack/en GB/LC MESSAGES/wget.mo wget: /usr/share/doc/doc/wget/MAILING-LIST wget: /usr/share/doc/wget/MAILING-LIST /usr/share/doc/doc/wget/MAILING-LIST wget: /usr/share/ The wireless-tools package is located in /usr share man/cs/man8/iwgetid.8.gz.

The wireless-tools binary is located in /sbin/iwgetid.wget: /usr/share/doc/wget/changelog.Debian.gz wget: /usr/share/man/man1/wget.1.gz wget: /usr/share/info/wget.info.gz wget: /usr/share/doc/wget/wget/changelog.Debian.gz wget is located at /usr/share/doc/wget/AUTHORS.wget: /usr/share/doc/wget/README language-pack-en-base: /usr/share/locale-langpack/en AU/LC MESSAGES/wget.mo language-pack-en-base: /usr/share/locale-langpack/en AU/LC MESSAGES/wget.mo wget is defined in /etc/wgetrc.The wget executable is located in the /etc/init.d/wget directory.

The wget language-pack-en-base is located in the /etc/init.d/lc messages/wget.mo directory.The bash-completion directory is located in the /etc/bash-completion/completions directory.vim-runtime: /usr/share/doc/wget vim-runtime: /usr/share/vim/vim74/syntax/wget.vim wget: /usr/share/doc/wget

See also:  What Happens If Package Is Stolen?

Using apt-file to Search package

  1. You must use the apt command to install the apt-file utility on the command line interface before you can use it.
  2. Type the following command onto your computer: apt-get install apt-file apt-get install apt-file installation of packages using apt-get update The following are the outputs:/apt-get install apt-file Taking a look at the package listings.
  3. Done Constructing a dependency tree Reading the current situation of affairs.
  4. Done The following extra packages will be installed on top of the existing ones: curl libconfig-file-perl libconfig-file-perl libcurl3-gnutls libregexp-assemble-perl libregexp-assemble-perl NEW packages will be installed, including the following: The following Perl modules are available: curl libconfig-file-perl libregexp-assemble-perl Upgrades will be made to the following packages: libcurl3-gnutls 1 was upgraded, 4 were installed for the first time, 0 were removed, and 469 were not upgraded.
  5. It is need to download 432 kB of archives.
  6. A total of 689 kB of more disk space will be utilized following this transaction.

Are you sure you want to proceed?y Take a look at 1xenial-updates/main amd64 libcurl3-gnutls amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.8 Curl amd64 7.47.0-1ubuntu2.8 to get the file 2xenial-updates/main amd64 all 3xenial/universe amd64 libconfig-file perl libconfig-file perl all 1.50-3 Get:4xenial/universe amd64 libregexp-assemble-perl all 0.36-1 4xenial/universe amd64 libregexp-assemble-perl all 0.36-1 Install the following:5xenial/universe amd64 apt-file all 2.5.5ubuntu1 Fetched 432 kB in 3 seconds (at a rate of 120 kB/s).(Reading the database; there are presently 179488 files and folders installed.) /libcurl3-gnutls 7.47.0-1ubuntu2.8 amd64.deb is being prepared for unpacking.The libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.8) package is being unpacked over the network (7.47.0-1ubuntu2.2).

Curl has been picked from a list of previously unselected packages./curl 7.47.0-1ubuntu2.8 amd64.deb is being prepared for unpacking.curls are being unpacked (7.47.0-1ubuntu2.8).

libconfig-file-perl has been picked from a previously unselected list.Preparing to extract /libconfig-file-perl 1.50-3 all.deb before starting the unpacking process.libconfig-file-perl is being unpacked (1.50-3).The package libregexp-assemble-perl has been picked from a list of previously unselected packages.Preparing to unpack /libregexp-assemble-perl 0.36-1 all.deb./libregexp-assemble-perl 0.36-1 all.deb.

  1. libgexp-assemble-perl is being unpacked (0.36-1).
  2. apt-file has been picked from a list of previously unselected packages.
  3. /apt-file 2.5.5ubuntu1 all.deb is being prepared for unpacking.
  4. apt-file is being unpacked (2.5.5ubuntu1).
  5. Triggers for the libc-bin processing pipeline (2.23-0ubuntu9).

Processing triggers for the man-db database (2.7.5-1).Installing and configuring libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.8).Curling the strands (7.47.0-1ubuntu2.8).Configuring the libconfig-file-perl library (1.50-3).Configuring the libregexp-assemble-perl package (0.36-1).

  • Configuring the apt-file system (2.5.5ubuntu1).
  • The system-wide cache has been cleared.
  • It is possible that you will need to execute ‘apt-file update’ as root in order to update the cache.
  • It’s also possible to execute ‘apt-file update’ as the standard user in order to make advantage of a cache in the user’s home directory.
  • Triggers for the libc-bin processing pipeline (2.23-0ubuntu9).
  • Type the following command to find out which package contains a file named wget in order to find out where it may be found: apt-file search wget apt-file search wget

How do I find the package that provides a file?

  1. An expansion of Alexx Roche’s great response is provided here.
  2. I attempted to make a change to that response, but it was denied (albeit not by Alexx).
  3. I was attempting to figure out which programs had been installed on my system at the time.
  4. /usr/local/bin/apt-whatprovides ver.
  5. 201801010101 was built after some time spent tinkering with the source code.
  6. MIT Licence rdfa, Copyright alexx, MIT Licence rdfa: deps=″″ BINARY=″$(realpath $(which [email protected]) 2>/dev/null)″ deps=″″ BINARY=″$(realpath $(which [email protected]) 2>/dev/null)″ deps=″″ BINARY=″$(realpath $(which [email protected]) 2>/dev/null)″ echo && BINARY=″[email protected]″ && Searching for the package $BINARY PACKAGE=″$(apt-file search $BINARY|grep -E ″:.*$$″)″ echo ″$″ echo ″$″ Despite the fact that for the vast majority of the things that are installed, you may just use: apt-file search is a command-line program that searches for files in an apt-file directory.

$(realpath $(which THING)) |grep ‘THING$’ $(realpath $(which THING)) When searching for THINGs that aren’t installed, use the following command: apt-file search THING |grep ″/THING$″ The apt-whatprovides script works for both files that are already on your system and files that are not yet on your system.For example, because my system lacked dig but did have ping, the following is what happened: Raspberry Pi: [email protected]:$ apt-whatprovides ping /bin/ping inetutils-ping: /bin/ping iputils-ping: /bin/ping inetutils-ping: /bin/ping dig @ raspberrypi: $ apt-whatprovides [email protected] Dig dnsutils was discovered when searching for it: /usr/bin/dig epic4: /usr/share/epic4/script/dig epic4-help: /usr/share/epic4/help/8 Scripts/dig knot-dnsutils: /usr/bin/dig knot-dnsutils-help: /usr/bin/dig knot-dnsutils-help: /usr/bin/dig knot-dnsutils-help: /us It is important to note that Searching for is a whole path for ping (which is installed) and only the binary name for dig (which is not installed) in this case.

This saved me the trouble of having to go searching for what I needed to install dnsutils on my computer.

What package provides file Ubuntu?

Ubuntu, like Debian, ships with the apt-file program pre-installed. The functionality is quite similar to that of apt-get, in that it allows you to simply search for files within packages.

Which package contains a file?

1. Locating the package that contains a file by using the apt-file command (for repository packages, either installed or not installed) apt-file indexes the contents of all packages accessible in your repositories and allows you to search for files in all of these packages using the apt-file search command.

What is apt-file?

This software package searches the contents of packages included in your accessible repositories and allows you to search for a certain file among all of the packages in your repository. It is possible to rapidly determine which package(s) you may install in order to satisfy a dependency using the command apt-file.

What is file package Linux?

  1. A package is a collection of new software for Linux-based systems that is delivered and maintained by the packager.
  2. In the same way that Windows-based PCs rely on executable installers, the Linux ecosystem is reliant on packages that are managed through software repository management systems.
  3. On the computer, these files are in charge of the insertion, maintenance, and removal of software applications.

How do I list apt repositories?

List the file and all of the files in the /etc/apt/sources. list. d/ directory using the list command. Alternatively, the apt-cache command may be used to provide a list of all available repositories.

How do I find packages in Ubuntu?

What is the best way to find out what packages are installed on Ubuntu Linux?

  1. To begin, launch the terminal program or connect in to the remote server using ssh (for example, ssh [email protected])
  2. Run the command apt list –installed to get a list of all the packages that have been installed on Ubuntu.

How do I find the rpm of a file?

The rpm command can be used to display the contents of a package’s files. If you know what the file name is, you may use it to discover the package that is associated with it. The output will contain the name of the package as well as its version number. Using the –queryformat option, you can only see the package name and nothing else.

How do I find an apt-file?

Instructions in further detail:

  1. Update package repositories and obtain the most up-to-date package information by using the update command.
  2. Run the install command with the -y parameter to install the packages and dependencies as rapidly as possible. apt-get install -y apt-file sudo apt-get install -y apt-file
  3. Check the system logs to make sure there aren’t any issues that are linked to this

How do I install sudo apt?

If you know the name of the package you want to install, you can do it by using the following syntax: sudo apt-get install package1 package2 package3 sudo apt-get install package4 This demonstrates the ability to install numerous packages at the same time, which is important for collecting all of the software needed for a project in a single step.

How do you list all installed packages in Linux?

The following is the method to be followed in order to list the packages that have been installed:

  1. Launch the Terminal application
  2. Ssh [email protected] is the command to use to log in to a remote server using SSH.
  3. Run the following command to display information about all installed packages on CentOS: installed using sudo yum list
  4. Run the following commands to count all of the installed packages: sudo yum list installed | wc -l

How to check which package provides a file in Ubuntu?

  1. Assume that you want to know which package in Ubuntu Linux supplies a file with the name /bin/bash and that you want to know how to find out.
  2. What to do in order to attain that.
  3. In addition, if you are working with the CentOS/RHEL Linux operating system, you may use the rpm –qf command to determine whether packages include this file.
  4. To achieve the desired outcome in the Ubuntu Linux system, you may use the dpkg –S or apt-file commands, respectively.

How to find specific package in Ubuntu 20.04 LTS?

As a result, if you require the library file libpcre.so on your Ubuntu 20.04 LTS computer, you will need to install the package libpcre3-dev. If you know a portion of the path to the file you’re looking for, you may use apt-file to search for packages that contain that portion of the path.

How to find the package that provides a file?

If you want to find out which package supplies a file (only for DEB packages that have been installed from any source), you may use the dpkg command. It can also be used to find out which package a file belongs to. Because there is no need to install anything and there is no database to update, it may be more efficient than apt-file when compared to the latter.

What is the equivalent command on Ubuntu?

  1. When using Fedora’s yum package management tool, there is a useful feature called whatprovides, which allows you to determine which package has installed a certain binary or file.
  2. What is the comparable command on the Ubuntu operating system?
  3. Consider the following scenario: I’d want to determine which package provides /usr/bin/mysqladmin.
  4. I’m aware that it should be something like mysql-server* or something like.

Which Ubuntu package provides a file?

Ubuntu, like Debian, ships with the apt-file program pre-installed.

Which package provides a file Ubuntu?

A package called apt-file is included in both Ubuntu and Debian.

What package does a file belong to Linux?

The rpm command can be used to display the contents of a package’s files. If you know what the file name is, you may use it to discover the package that is associated with it. The output will contain the name of the package as well as its version number. Using the –queryformat option, you can only see the package name and nothing else.

Which rpm provides a file?

To be more specific, an RPM package is made up of two parts: the cpio archive, which includes the files, and the RPM header, which provides information about the package. It is this metadata that allows the rpm package manager to detect dependencies, where to install files, and other pertinent information. RPM packages may be divided into two categories: RPM as a source (SRPM)

How do I find a package in Ubuntu?

Specific to RPM packages, a cpio archive, which includes the files, plus an RPM header that contains metadata about the package constitute an RPM package. Dependencies, where to install files, and other information are determined by the rpm package manager using this metadata. Packages for RPM are divided into two types: 1. RPM as a starting point (SRPM)

  1. Take possession of the parcel
  2. Go to your home directory using the command cd
  3. Unpack the package using the following command: rpm2cpio myrpmfile.rpm | cpio -idmv
  4. (This will only happen once.) Configure your environment variables to include /usr/bin in the PATH environment variable and /usr/lib64 in the LD LIBRARY PATH environment variable.

What does yum provides do?

Yum fulfills its function Yum includes a method that may be used to determine which package a certain file is associated with. For example, if you want to know the name of the package that contains the /etc/ directory, RPM files on Linux are the way to go.

The majority of RPM-related files are stored in the /var/lib/rpm/ directory on the server. More information about RPM may be found in Chapter 10, Package Management with RPM, which contains a number of examples. Files utilized by the Package Updater, including RPM header information for the system, may be found in the /var/cache/yum/ directory of your home directory.

Where is my RPM package Linux?

  1. Using the rpm -a option, you may get a list of all the packages that have been installed. Open a Terminal window or log into the remote server using the ssh client to begin. …
  2. Obtaining information about certain packages. …
  3. List all of the files that have been installed by the RPM package.

What is the best way to discover which Debian package owns a particular file?

  1. The commands $ dpkg –S PathToTheFile and $ dpkg-query –S ‘PathToTheFile’ are equivalent.
  2. $ sudo apt-get install apt-file
  3. $ sudo apt-get install apt-file
  4. $ sudo apt-file update
  5. $ sudo apt-file update
  6. Apt-file search PathToTheFile
  7. $ apt-file search PathToTheFile

The original version of this article appeared on askingthelot.com/which-ubuntu-package-provides-a-file/.

How do I view files in a deb package?

The contents of the deb package file are listed using dpkg -c (also known as –contents) (It is a front-end to dpkg-deb.) apt-file is a command that allows you to deal directly with package names rather than package files.

What is apt-file?

This software package searches the contents of packages included in your accessible repositories and allows you to search for a certain file among all of the packages in your repository. … It is possible to rapidly determine which package(s) you may install in order to satisfy a dependency using the command apt-file.

What is Pkg Ubuntu?

The pkg-config application is used to obtain information about the libraries that have been installed on the system. In most cases, it is used to build and link against a single or several libraries. … c cc program c cc program

Where is repo file in Ubuntu?

Linux distributions based on Debian, such as Ubuntu and all others, declare their apt software repositories either in a single file, /etc/apt/sources. list, or in a series of files under the /etc/apt/sources. list. d/ directory.

Is Ubuntu a Debian based system?

  1. Ubuntu is a Linux operating system.
  2. A cross-platform, open-source operating system based on Debian is developed and maintained by Ubuntu, with a focus on release quality, enterprise security updates and leadership in key platform capabilities for integration, security and usability.
  3. Ubuntu was founded in 2005 by Linus Torvalds and Linus Torvalds.
  4. … Learn more about the relationship between Debian and Ubuntu.
See also:  Who Owns The Post Office?

Does Ubuntu use yum?

For finding, downloading, and installing packages and their dependencies, Ubuntu use the apt-get command rather than yum, up2date, and other similar tools. It is important to note that, in contrast to yum, apt-get only works with packages that are accessible in repositories — it cannot handle items that have previously been downloaded. In its place, the dpkg command is used.

What Linux uses yum?

  1. Yum is the primary tool for downloading, installing, deleting, querying, and managing Red Hat Enterprise Linux RPM software packages from official Red Hat software repositories, as well as from other third-party repositories.
  2. Yum is also the primary tool for managing Red Hat Enterprise Linux RPM software packages.
  3. yum is a package manager that is included with Red Hat Enterprise Linux versions 5 and later.

What Linux distros use yum?

  • RedHat Enterprise Linux, Fedora, CentOS, Oracle Enterprise Linux, Scientific Linux, CERN, SUSE, and OpenSUSE are all examples of Linux distributions.

How do I package an RPM?

  1. Install the package rpm-build. The rpmbuild command is required in order to generate a rpm file based on the specification file that we just prepared. Source Tar File is downloaded. Spec File is created. RPM File is created using the rpmbuild command. Source and Binary RPM Files are verified. RPM File is installed to verify the results.

How do I list installed RPM packages?

Using the -ql (query list) option with the rpm command will allow you to see all of the files included within an installed rpm package.

What is inside RPM package?

In most cases, an RPM package will contain binary executables in addition to the necessary configuration files and documentation. Package managers such as the rpm program are quite sophisticated and may be used to install software packages in the RPM format as well as query, validate, update, wipe, and generate them.

How can I tell which package provides a file?

If you want to find out which package supplies a file (only for DEB packages that have been installed from any source), you may use the dpkg command. It can also be used to find out which package a file belongs to. Because there is no need to install anything and there is no database to update, it may be more efficient than apt-file when compared to the latter.

What is Linux RPM package?

  1. A software package manager for Linux, the Red-hat Package Manager (commonly known as RPM), is an open source tool for installing, uninstalling, and managing software packages.
  2. It was initially developed by Red Hat, and is currently maintained by the Linux Foundation.
  3. The RPM package manager was created on the basis of the Linux Standard Base (LSB).
  4. rpm is the default extension for files used by the software, and it can be changed.

What package manager does Fedora use?

  1. Fedora is a Linux distribution that makes use of the package management system pkg.manage.
  2. This system is based on rpm, the RPM Package Manager, with various higher level tools developed on top of it, the most notable of which are PackageKit (the default graphical user interface) and yum (the package management system) (command line tool).
  3. yum has been deprecated and replaced with dnf as of Fedora 22.

Where are packages installed Linux?

A good beginning point may be the find command to locate the executable name, but it’s not uncommon for software to be placed in many bin directories such as /usr/bin, /home/user/bin, and a variety of other locations. It is possible that the software has components and dependencies in the lib, bin, and other files.

How install RPM package in Linux?

  1. Enter the workstation as root, or use the su command on a different workstation to change to the root user, and then follow the on-screen instructions.
  2. Obtain the package that you intend to install by clicking on the Download button. …
  3. When prompted, type the following command: rpm -i DeathStar0 42b.rpm
  4. to install the package, type the following command at the prompt: rpm -i DeathStar0 42b.rpm

What is Deb vs RPM?

  1. In Debian-based distributions, DEB files are used for installation purposes.
  2. RPM files are installation files for Linux distributions that are based on Red Hat.
  3. Ubuntu’s package management system, which is based on APT and DPKG, is derived from Debian.
  4. Red Hat, CentOS, and Fedora are all Linux distributions that are based on the RPM package management system, which was first developed for Red Hat Linux.

How do I find packages in Linux?

The apt-cache search function on Ubuntu and Debian systems allows you to search for any package simply by entering a term that is linked to its name or description. The result provides you with a list of packages that correspond to the term you entered. Once you’ve determined the specific package name, you can use it in conjunction with the apt install command to complete the installation.

How do I find apt get packages?

Before installing a package, the’search’ option may be used to find out the name of the package as well as its description. When using the ″search″ command with apt-cache, a list of matching packages with a brief description will be displayed.

In which file are repositories stored for Debian package management?

Before installing a package, you may use the’search’ option to find out its name and description. A list of matching packages with a brief description will be displayed when ″search″ is used with apt-cache.

What files are in a deb package?

  1. Do you know what the format of a Debian binary package is?
  2. Debian ″packages,″ also known as Debian archive files, include the executable files, libraries, and documentation associated with a specific suite of applications or group of related programs that have been compiled into a single package.
  3. Normally, a Debian archive file has a filename that finishes with the letters deb at the end of it.

How do I find the package that contains a given program on Ubuntu?

  1. If the package has already been installed, you should run dpkg -S /path/to/file.
  2. If the package isn’t already installed, use the apt-file program (apt-file update; apt-file search /path/to/file) to install or update the package.
  3. answered At 3:09 p.m.
  4. on June 24, 2009, womble♦womble94.2k29 There are 169 gold badges, 228 silver badges, and 228 bronze badges.
  5. 1 + 1 = 1+1 You may use dlocate instead of dpkg -S to make the searching virtually rapid, but you must first install dlocate before you can use it.
  6. If you wish to reduce bandwidth, you may alternatively utilize packages.ubuntu.com instead of apt-file to install software.

At 6:56 p.m.on June 24, 2009,

  • Ubuntu comes with a command-not-found program that will inform you which package to install in order to obtain a certain command you are looking for. In the case of a well configured installation (maybe in the default install? ), it will appear when you type a command that is not yet installed. You may, however, launch it manually by following these steps: test /usr/lib/command-not-found -ignore-installed $ /usr/lib/command-not-found -ignore-installed The software ‘test’ is not currently installed on your computer. Using the command sudo apt-get install coreutils, you can get it up and running. answered At 4:08 p.m. on June 24, 2009, The number of silver badges is 2,82618, while the number of bronze badges is 13. Ubuntu, like Debian, ships with the apt-file program pre-installed. The functionality is quite similar to that of apt-get, in that it allows you to simply search for files within packages. As a result, you would have $ apt-file update. the command ″apt-file search xclock″ That’s all there is to it. It’s possible to utilize the interface at the bottom of the Debian packages website, if you’re fortunate enough to find it. This will work if the Ubuntu maintainers haven’t made too many changes since the original Debian version was published. answered At 11:51 a.m. on July 6, 2009 silver badges1 88714 bronze badges12 towotowo1 88714 You may also use the apt-cache search command to see if the program has any local caches. answered Posted on June 24, 2009 at 3:28 p.m. Tim Howland is a writer who lives in the United Kingdom. Tim Howland has received 4,6382 gold badges. There are 25 silver badges and 21 bronze badges. 2 dpkg -S /usr/bin/reduce-font => libbogl-dev
  • apt-cache search reduce-font and apt-cache search /usr/bin/reduce-font both return nothing
  • apt-cache search /usr/bin/reduce-font both return nothing. Care to extend your answer? at 3:33 p.m. on June 24, 2009
  • Womble, No idea what is wrong on your end, but the commands ″apt-cache search xprop″ and ″apt-cache search remmina″ that Tim Howland recommends work for me: ″apt-cache search xprop″ and ″apt-cache search remmina.″ At 14:06 on September 3, 2021

Related Packages and Files

  1. It is often necessary to know the package that is associated with a certain file, either before installing it or after it has been installed.
  2. This is extremely useful when performing system hardening or general system cleanups on a computer.
  3. The methods for determining the connections between files and the packages to which they belong are discussed in this article.
  4. Several approaches are discussed.
  5. This material has been compiled for a number of different Linux distributions.

CentOS, Fedora, RHEL

Show files for RPM packages

Rpm -qlp /path/to/file.rpm /path/to/file.rpm

Show files for packages on the repository

By using dnf, you will be able to query files from the packages that are currently in your repositories. It is not necessary to install the package itself.dnf repoquery -q -l packagenameUse the -q option with dnf to display just the relevant output.dnf repoquery -q -l packagename

Show files per installed package

  1. The rpm command may be used to display the files included within a package.rpm -ql package will display the files contained within a package.
  2. If you know the name of the file, you may use the following command to locate the associated package: rpm -qf /bin/ps The output will contain the name of the package as well as its version number.
  3. The –queryformat option may be used to just display the package name.rpm -qf /bin/ps -queryformat’percent’will only display the package name.
  4. A similar request to see the relevant package may be made using the yum command line tool.
  5. yum whatprovides /bin/ps is a command-line tool.
  6. There is also the provides argument with DNF.dnf offers the command /bin/ps.

Because a file can be found in numerous packages from separate repositories, you may receive multiple results from this search.Because of the many sorts of lines in this data, it is more difficult to interpret.

Debian and Ubuntu

Discover related package

  1. The whole path of a binary (or file) must be known before we can locate the corresponding package for that binary (or file).
  2. If you already know where the binary is saved, you may use the which command to find out where it is stored.
  3. It is also possible to use the search command, albeit this may be less efficient.
  4. It is possible to locate the relevant package using the dpkg package management tool.
  5. Awk the following: ″dpkg -S /usr/sbin/atd’ |
  6. awk the following: ″ The output will appear as follows if the awk command is not used.

Show files installed by package

If you already know the name of the package, you may seek up the files that are installed by a Debian package in a matter of seconds. dpkg -L package is a command that allows you to install packages. Let’s do the same thing with the aforementioned package and see what it really installs (and where).

Gentoo

The first alternative is to make use of the equery library, which is included in the app-portage/gentoolkit.equery files package. It is necessary to install the package itself. The following option is qlist, which is included in the app-portage/portage-utilsqlist package.

OpenSUSE

Systems running SuSE distributions can make use of the zypper tool to determine the relationship between a file and a package on the system.

Show related package

Zypper what-provides /bin/psAre there any more handy commands you’d want to share? Please let us know in the comments section and we will include it in the post.

Finding out what package a command came from

  1. Open a terminal window and run the following commands to see whether they work: dpkg -S ‘command name’ (for example, dpkg -S /bin/ls) is a command-line option.
  2. Coreutils: /bin/ls is an example of output.
  3. Additionally, you may receive comprehensive status information on the coreutils package by using the following command: dpkg -S coreutils Here’s an example of the output: coreutils is a software package.
  4. Yes, that is very necessary.
  5. Install went smoothly, and it was installed.
  6. necessary as a matter of urgency Section: utilitarian Installed-Size (inches): 9040 Ubuntu Core Developers are in charge of maintaining this package.

i386 is the processor architecture.5.97-5.3ubuntu3 is the current version.libc6 (>= 2.6-1), libselinux1 (>= 2.0.15), textutils, shellutils, fileutils, stat, debianutils (= 2.2.11-1), libselinux1 (>= 2.0.15), textutils, shellutils, fileutils, stat, Conflicts of interest: stat Description: The GNU core utilities are a collection of programs that are essential to the operation of the GNU operating system.This package includes the fundamental system utilities that are required.

In particular, the following items are included in this package: basename chgrp chmod chown chroot cksum cat chgrp chmod chown chroot cksum dir dircolors comm cp csplit cut date dd df dir dircolors dd df dir dircolors name of dirname of echo of environment and expansion of expr Factor false fmt fold groups are a kind of fold group.hostid id install join link head hostid id the command line is as follows: ln logname ls md5sum create directory mkfifo create shortcut mknod create shortcut mv lovely nohup od paste pathchk pinky pr printenv printf ptx pwd pathchk pinky pr printenv printf ptx pwd link to this page rm sha1sum seq shred rmdir sha1sum seq shred sleep sort split stat stty sum sleep sort split sync tac tail tee test touch tr true tsort tty uname unexpand uniq unlink users vdir wc whoami whoami whoami whoami yes Michael Stone is the original maintainer of this site.

How to list files of a Debian package without install

  1. For those of you who are still searching for information on this topic in January 2017, you can get some great stuff from latest versions of apt and dpkg in Debian 8.5 without having to download anything.
  2. Without having to download anything, here is a list of the contents of the Deb file: To begin, discover the complete url of the deb file, which is as follows: Download yade from [email protected]:apt-get -print-uris 1621148 SHA256:26c0d84484a92ae9c2828edaa63243eb764378d79191149970926a3ec40cd4 yade 2016.06a-7 amd64.deb yade 2016.06a-7 amd64.deb 1621148 PS: The -print-uris switch prints the url of the deb package, however the deb package is not downloaded when using this switch.
  3. Then, without downloading the deb package, display the contents of the package: [email protected]:curl -sL -o- ″ |dpkg-deb -c /dev/stdin |dpkg-deb -c /dev/stdin root/root0 has the permissions drwxr-xr-x the 10th of December, 2016 at 22:18./ drwxr-xr-x root/root0 2016-12-10 22:18./usr/ drwxr-xr-x root/root0 2016-12-10 22:18./usr/bin/ -rwxr-xr-x root/root13184 2016-12-10 22:18./usr/bin/ -rwxr-xr-x root/root13184 /usr/bin/yade was executed at 22:18 on December 10th, 2016.
  4. Additional files are listed below.
  5. In addition, [email protected]:dpkg -c apt 1.4beta2 will get the same results (amd64) Version 1.18.18 of the Debian ‘dpkg’ package management application is available via [email protected]:dpkg -version (amd64).
  6. [email protected]:man -version -> man 2.7.6.1 [email protected]:tar -version -> tar (GNU tar) 1.29 [email protected]:tar -version -> tar (GNU tar) 1.29
See also:  How Many Times A Day Does Mail Leave The Post Office?

How to Find Which Package a File Belongs in Linux

A Linux package is a compressed file archive that contains all of the files that are associated with a single program. In rare cases, it may be necessary to determine the package name associated with a particular file. Learn how to determine which package a file is a part of or owns on the Linux system by following the instructions in this article.

Which package provides file on Ubuntu/Debian System

  1. We have a few options for determining which packages are responsible for a certain file on an Ubuntu/Debian system.
  2. Using the dpkg command To locate a package that contains a file, you can use the dpkg and dpkg-query commands, respectively.
  3. This command searches the installed packages for a filename matching the specified string.
  4. Syntax: dpkg -S filename is a command-line option.
  5. dpkg-query -S filename is a command that searches for packages.
  6. For example, the following command may be used to determine which package the /bin/ls file is associated with.

$ dpkg -S /bin/ls /bin/ls Using the dpkg-query command You may also use the dpkg-query command to get the package name for the file that has been successfully installed.$ dpkg-query -S /bin/ls $ dpkg-query -S /bin/ls dpkg-query -S ‘/bin/ls’ is a command that searches for a binary file.$ dpkg-query -S ‘passwd*’ dpkg-query Using the apt-file command It is possible to search for files within DEB packages on your system, as well as packages that are not installed on your Debian systems but are available through the repositories, by using the apt-file command.The apt-file package is not automatically installed by the system.

Installing apt-file on Ubuntu and other Debian-based Linux systems is as simple as typing the following command: install apt-file with sudo $ sudo apt install Make careful to refresh the database cache by typing the following: $ sudo apt-get install apt-get update Now, using the following command, let’s look for the package that contains the routing command.$ apt-file search ‘bin/route’ |grep ″bin/route″ On the left-hand side of the screen, you can see the package name associated with the route command.

Which package provides file on RHEL Based System

  1. Various Linux distributions, including Redhat, Fedora, AlmaLinux, Rocky Linux, CentOS Stream, and Oracle Linux, are capable of supporting this.
  2. Making Use of the DNF Command In RHEL-based systems such as Fedora, you may use the provides option in conjunction with DNF to locate the package containing a certain file.
  3. It is compatible with all of the file providers in any accessible installation package.
  4. Syntax: dnf gives a filename for you.
  5. *filename dpkg-query -search ‘/path/to/file’ is provided by the dnf package.
  6. In order to find the package of a binary file, for example, you would use the following command.

*bin/ls is provided by $ dnf.The Yum Command and the RPM Package Manager When looking for a specific file, you may use the rpm command to locate the package that contains it.Filename is provided by rpm with the -rf flag.Rpm with the -q flag offers the filename with the -what flag.

This will locate the package name for the package file that has been installed.Using the following command, for example, you can identify the rpm package that contains the /bin/ls file that you are looking for./bin/ls rpm -qf $ rpm -qf /bin/ls You may alternatively use the rpm command, which is as follows: $ rpm -q -whatprovides /etc/nginx/nginx.conf $ rpm -q -whatprovides You may accomplish the same thing by using the yum command, which looks like this: $ yum whatprovides netstat is a command-line tool.

You may also look for a specific library file to see which package it belongs to by referencing it.

Search for files not installed on Debian/Ubuntu

You may look for the file by visiting the Debian packages search and the Ubuntu packages search pages. The package name will be displayed as a result of the search. This will then allow your apt command to install the appropriate package for you to utilize.

Conclusion

In this article, we learnt how to determine which package a file belongs to in Linux by using the grep command. Thank you for taking the time to read this, and please share your thoughts and recommendations.

How to use apt-cache search to find packages

  1. Have you ever encountered a difficulty during the installation of an apt package when you were unable to determine the specific package name?
  2. When using apt, you must supply the complete name of the package in order for it to be installed, for example, apt install apache2.
  3. If you do not specify the precise name and instead just type apache, the installation will not take effect.
  4. The same is true when attempting to uninstall an apt package.
  5. The apt-cache search function on Ubuntu and Debian systems allows you to search for any package simply by entering a term that is linked to its name or description.
  6. The result provides you with a list of packages that correspond to the term you entered.

Once you’ve determined the specific package name, you can use it in conjunction with the apt install command to complete the installation.Also, when seeking for information on a certain program, it might be really useful.It should be noted that you may search for any apt package, whether it is been installed or has not yet been installed, using the apt-cache search command.This article will show you how to search for a package in your system repositories using the apt-cache search command and the apt-cache search parameter.

We will also learn about several more commands, such as apt search and aptitude, which may be used to look for any package you may be interested in.Keep in mind that we tested the procedures described in this post using Ubuntu 18.04 LTS system Terminal.In Ubuntu, the Ctrl+Alt+T keyboard shortcut is used to launch the Terminal window.

We will recommend that you update the repository index before conducting any of the following procedures.The repository index should be updated as follows:

Search Packages using apt-cache search

  1. Apt-cache is a command-line program that may be used to search for apt packages on systems that are based on Ubuntu or Debian.
  2. If you use the apt-cache search command, you may find any package by searching for a term associated with its name or description.
  3. It returns a list of all of the packages that fit the search parameters in the output.
  4. With apt-cache search, you may search for and display information about the packages that are currently accessible from the internet’s package repositories.
  5. This tool may also be used to find out more about the packages that are already installed on your system.
  6. It gathers information on the packages from a variety of sources and saves it in a local database, which is kept up to date by executing the apt update procedure on the packages.

apt-cache search followed by the relevant term is the command to use when looking for software packages.Here is the syntax to use in order to accomplish this: search for apt-cache with sudo You can substitute any of the names of the installed or installable packages for the keyword.It is important to note that the keyword might be accurate or a part of the package name, or it can be any term connected to the product description, among other possibilities.In the result, you will find a list of packages that have been found that match the keyword you specified, as well as a brief description of each item.

For example, we would like to install the ZFS storage management solution on our system.Let’s search for the specific package name using the apt-cache search command, which looks like this: From the output, you can determine the specific package name, which is ″zfsutils-linux,″ as well as a brief description of the package.As you can see from the screenshot, the list that was presented was far too extensive.

If you want to view output one line at a time or one screen at a time, use the less command.search for apt-cache with sudo zfs |less characters In a similar vein, the apt-cache search might be useful if you wish to install a web server but cannot remember the name of the package that contains the server.The package may be found in this situation by searching for it using any term that is linked to the package description.For example, I found it quite useful once when I wanted to install a search engine about which I knew nothing other than that it was a meta search engine that protected the privacy of its customers’ personal information.

  1. However, I was unable to recall the name of the search engine, so I inserted the following search phrase instead of the original: $ sudo apt-cache search ″metasearch engine″ $ sudo apt-cache search ″metasearch engine″ When the results were displayed, I was able to locate the requisite search engine name, which was ″Searx.″ Following that, I simply ran the apt install searx command to complete the installation.
  2. A similar result may be obtained by using the show flag with apt-cache.
  3. This will display basic information about the package, such as its version, size, dependencies, description, and other details.
  4. If you want to find out more about a certain package, you may use the display flag as follows: $ apt-cache show displays the contents of the cache.

Alternative ways

The following are some other methods that may be used to search for an installed or installable package on a computer’s system.

Search Packages using apt Search

  1. Apt search is the apt counterpart of the apt-cache search function that was formerly available through the apt-get command.
  2. Some users prefer the apt search command since the results are shown in a clear and understandable manner.
  3. It presents a list of packages, together with the most recent versions of those packages and a brief description of what they do.
  4. The most useful feature of apt search is that it highlights the package name while maintaining a reasonable amount of space between distinct packages.
  5. Additionally, the label Installed will appear at the end of the list of packages that have previously been installed.
  6. For example, to search for a package, you would input apt search followed by a term relevant to the package name into your browser.

Using the following command, you can search for the Apache2 package, which is an illustration of what I mean:

Search Packages using aptitude

  1. Aptitude is the graphical user interface (GUI) for the apt program in Linux, which is used for installing, updating, and uninstalling packages.
  2. This command may also be used to look for a certain package in a Linux system.
  3. Due to the fact that Aptitude is not installed by default on Linux, you will need to do a manual installation.
  4. In order to do so, run the install command in the following format: sudo apt install aptitude $ sudo apt install aptitude It is possible that the system will ask for confirmation by giving you with a Y/n choice.
  5. After that, press y and then Enter to confirm, and the Aptitude software will be installed on your PC.
  6. You may now use aptitude to search for a package by typing apt search followed by the term associated with the package name in your browser.

Search for aptitude for $ You will get results that are similar to the ones shown below: That’s all there is to it, really.In this post, we learnt how to search for a package using the apt-cache search command, which stands for ″apt-cache search.″ Apart from that, we learnt how to look for a package using the apt search and the aptitude commands.If you need to look for an installed or installable package in your system, I hope this will be of assistance anytime you need to do so.

About the author

Karim Buzdar has a bachelor’s degree in communications engineering and a number of system administration certificates. As an IT engineer and technical author, he contributes to a number of different websites. He maintains a blog at LinuxWays.

How to find which rpm package provides a specific file or library in RHEL

″The Request″ in this case is to locate the rpm package that contains a certain binary like /bin/lvcreate or a library file that is required. There are two commands that can assist you in locating the rpm package contained within the file: rpm and yum. The rpm command may also be used to list all of the files that are contained in a package.

Find rpm package which provides a particular binary file or library file

1. Method 1: using rpm command

  1. 1.
  2. Use the rpm commands listed below to determine whether rpm packages include a certain file.
  3. rpm -q -whatprovides is a command-line option.
  4. For example, the following command may be used to determine which rpm package contains the /etc/hosts file: rpm -q -whatprovides /etc/hosts setup-2.8.14-23.el6.noarch setup-2.8.14-23.el6.noarch setup-2.8.14-23.el6.noarch setup-2.8.14-23.el6.noarch Use the command below to locate the rpm package that contains the library file /usr/lib/gcc/x86 64-redhat-linux/4.4.4/libgomp.so located in the /usr/lib/gcc/x86 64-redhat-linux/4.4.4/libgomp.so directory.
  5. rpm -qf /usr/lib/gcc/x86 64-redhat-linux/4.4.4/libgomp.so gcc-4.4.7-18.el6.x86 64 gcc-4.4.7-18.el6.x86 64 rpm -qf /usr/lib/gcc/x86 64-redhat-linux/4.4.4/libgomp.so gcc-4 The command below can also be used in a similar manner to the one above.
  6. For instance, rpm -qf /etc/hosts setup is a command.

-2.8.14-23.el6.noarch

Method 2: Using yum command

  1. The yum command below offers the package that owns/provides the file name in question.
  2. It is necessary to have the system registered with RHN or another relevant repository in

Leave a Reply

Your email address will not be published.