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 Wieers URL : 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.
🐧 4 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
sir i have mounted the cd on vmware red hat linux 5 and some packages are not getting installed they show the error that not an rpm package or (package manifest). i urgently need an answer as i hve to submit my project on monday and i need packages for my project .please help me to overcome this error.
Hi all
i’m getting error when i install rpm on my plan server.
===============================
[root@srv src]# rpm -qip epel-release-5-4.noarch.rpm
error: open of [an failed: No such file or directory
error: open of error failed: No such file or directory
error: open of occurred failed: No such file or directory
error: open of while failed: No such file or directory
error: open of processing failed: No such file or directory
error: open of this failed: No such file or directory
error: open of directive] failed: No such file or directory
===========================================
Please update if any one know the error.
Thanks
sir ,
i have to install a package on linux in which I am gettin a difficulty.I installed rpm for linux but my package is not gettin indstalloed in that.it is shown as
[root@localhost mehraj]# env KEY_MODELLER=MODELIRANJE rpm -Uvh modeller-9.10-1.i386.rpm
error: open of modeller-9.10-1.i386.rpm failed: No such file or directory
[root@localhost mehraj]# ls rpm
ls: cannot access rpm: No such file or directory
[root@localhost mehraj]# env KEY_MODELLER=MODELIRANJE rpm -Uvh modeller-9.10-1.i686.rpm
error: open of modeller-9.10-1.i686.rpm failed: No such file or directory
[root@localhost mehraj]# cat modeller-9.10-1.i386.rpm
cat: modeller-9.10-1.i386.rpm: No such file or directory
[root@localhost mehraj]# ls *.rpm
ls: cannot access *.rpm: No such file or directory
[root@localhost mehraj]# ls *.rpm
ls: cannot access *.rpm: No such file or directory
[root@localhost mehraj]# pwd
/home/mehraj
[root@localhost mehraj]# rpm -ivh myrpm.rpm
error: open of myrpm.rpm failed: No such file or directory
[root@localhost mehraj]# pwd rpm
/home/mehraj
[root@localhost mehraj]# env KEY_MODELLER=MODELIRANJE rpm -Uvh /home/mehraj modeller-9.10-1.i686.rpm
error: not an rpm package
error: /home/mehraj: not an rpm package (or package manifest): Is a directory
error: open of modeller-9.10-1.i686.rpm failed: No such file or directory
how will i install that package….plz help me out…
if u know the answer plzz tell me as i am also facing the same problem as i need to submit my project. plzz help me out