Which rpm installed a file
Ask Question. Asked 8 years, 7 months ago. Active 8 years, 7 months ago. Viewed k times. Improve this question. Aaron D. Marasco 5, 21 21 silver badges 29 29 bronze badges. Add a comment. Active Oldest Votes. Each software package consists of an archive of files along with information about the package like its version, a description, etc.
Improve this answer. Line - sorry about that, RPM is a legit package as well. I understand, it was just confusing, because I didn't know that thing. Hope the above commend will help if anyone without that knowledge will take a look at this ; — Line. Sign up or log in Sign up using Google. Glibc -resolve Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile. For debuginfo packages, see Debuginfo mirror.
Starting from CentOS 8 dnf replaced yum as the default package manager. To install local rpm packages with yum or dnf , use the install command, followed by the path to the file.
Both yum and dnf will resolve and install all the package dependencies. You will be prompted to type Y to continue:. To install rpm packages with rpm use the -i or -U option followed by the path to the file:. If the package you are installing or updating depends on other packages that are not currently installed, rpm will display a list of all missing dependencies. You will have to install all the dependencies. In CentOS, you can install a local rpm file using yum or dnf , in the same way as you would install a package from the repositories.
Although most of the time, we install RPM packages using command via the official or unofficial repository in Linux. However, it is not the only way, just like Windows on Linux too, we can directly download and install software packages using Redhat supported open-source tool called RPM Package Manager.
First, log in as root or a user with sudo rights on your Linux server. You can use the command: su. Now, download the software package you want to install. So, in this way, we can simply use RPM command to install any rpm packages, however, it not resolve the dependencies of any packages require and gives error most of the time.
Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed. To install and use yum-utils , run the commands below: yum update yum install yum-utils Now you can list files of an installed RPM package, for example httpd web server note that the package name is case-sensitive.
If you liked this article, then do subscribe to email alerts for Linux tutorials.
0コメント