Linux rpm command no such file or directory error and solution
New Linux user often get this error. Let us say you haved downloaded the RPM file from net and saved to /tmp, you may get error - no no such file or directory - when the file is really downloaded and ls command can show the same.
Answer is pretty simple rpm command needs the full path to RPM command. Use pwd command to get full path and type the following commands:
ls *.rpm
pwd
/tmp
Now install the rpm file:
rpm -ivh myrpm.rpm
or use full path:
rpm -ivh /tmp/myrpm.rpm
Running query on uninstalled rpm package
However if you run query on uninstalled package you will get an error:
# rpm -qi /tmp/bandwidth-0.12-1.el5.rf.x86_64.rpm
Output:
package bandwidth-0.12-1.el5.rf.x86_64.rpm is not installed
To query an uninstalled package pass -p option to rpm command.
# rpm -qip /tmp/bandwidth-0.12-1.el5.rf.x86_64.rpm
Output:
Name : bandwidth Relocations: (not relocatable) Version : 0.12 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 1.el5.rf Build Date: Sat 28 Jul 2007 03:27:28 PM CDT Install Date: (not installed) Build Host: lisse.leuven.wieers.com Group : Applications/Internet Source RPM: bandwidth-0.12-1.el5.rf.src.rpm Size : 30905 License: GPL Signature : DSA/SHA1, Sat 28 Jul 2007 03:31:11 PM CDT, Key ID a20e52146b8d79e6 Packager : Dag WieersURL : http://home.comcast.net/~fbui/bandwidth.html Summary : Artificial benchmark for measuring memory bandwidth Description : bandwidth is an artificial benchmark for measuring memory bandwidth, useful for identifying a computer's weak areas.
You may also be interested in other helpful articles:
- HTTP 500 error when I run my Perl script
- KDE or GNOME graphical login manager hates my NIS configured automount directories
- Linux missing GPG db42a60e key error message
- NFS Stale File Handle error and solution
- Howto: Lighttpd web server setting up virtual hosting
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: CentOS, Linux, pwd_command, redhat, rhel, rpm_command, rpm_errors, suse



Recent Comments
Yesterday ~ 16 Comments
Yesterday ~ 5 Comments
Yesterday ~ 20 Comments
Yesterday ~ 35 Comments
Yesterday ~ 13 Comments