Rpm error not an rpm package

I've run into a bit of an issue with rpm on an Oracle Linux 6.5 box. I installed an RPM, and it appears to have installed successfully. However, now I am trying to remove it, but rpm says it's al...

I’ve run into a bit of an issue with rpm on an Oracle Linux 6.5 box.

I installed an RPM, and it appears to have installed successfully. However, now I am trying to remove it, but rpm says it’s already installed. I am trying to uninstall it by package name, not the full *.rpm name. Ex:

[root@server06 ~]# rpm -ivh package-10.0.0B116-02202013-x64.rpm

Preparing...                ########################################### [100%]
        package custom-linux-9026-10.0.0-BUILD116.noarch is already installed

[root@server06 ~]# rpm -ql package-10.0.0B116-02202013-x64.rpm
package package-10.0.0B116-02202013-x64.rpm is not installed

[root@server06 ~]# rpm -q package-10.0.0B116
package package-10.0.0B116 is not installed

[root@server06 ~]# rpm -e package-10.0.0B116
error: package package-10.0.0B116 is not installed

So the system won’t let me install it again because it thinks it’s already there, but won’t let me uninstall it because it thinks it’s not there.

rpm -qa |grep -i package returns nothing.

rpm --rebuilddb doesn’t help either.

Anthon's user avatar

Anthon

77k42 gold badges159 silver badges217 bronze badges

asked May 12, 2016 at 14:37

Andi's user avatar

1

Notice the line:

package custom-linux-9026-10.0.0-BUILD116.noarch is already installed

So despite the filename of package-10.0.0B116-02202013-x64.rpm the package (in rpm header) is likely named custom-linux-9026-10.0.0-BUILD116. So you must call

rpm -e custom-linux-9026-10.0.0-BUILD116

answered May 13, 2016 at 17:19

msuchy's user avatar

msuchymsuchy

1,3837 silver badges6 bronze badges

If you still have the original rpm file, extract the package name from it with -qp and the filename, eg

$ rpm -qp ~/myrpm-1.0-05077.i586.rpm
myrpm-1.0-05077.i586

and try using that in the rpm erase, as the filename might not match the package name.

answered May 12, 2016 at 16:22

meuh's user avatar

meuhmeuh

47.2k1 gold badge48 silver badges107 bronze badges

1

rpm -aq | grep -i package.rpm if still not getting the output, then run updatedb command and try again

i will if ignore case sensitive

If you want to remove the rpm please give the full package name.

rpm -e package-10.0.0B116-02202013-x64.rpm

answered May 12, 2016 at 14:39

AReddy's user avatar

AReddyAReddy

3,0545 gold badges34 silver badges70 bronze badges

1

The real problem seems to be that the package you are trying to remove wasn’t actually installed:

Preparing...                ########################################### [100%]
        package custom-linux-9026-10.0.0-BUILD116.noarch is already installed

And the package name seems to be custom-linux-9026-10.0.0-BUILD116.noarch.

answered Nov 18, 2020 at 7:35

U. Windl's user avatar

U. WindlU. Windl

1,0236 silver badges20 bronze badges

Description of Issue/Question

Hello,
We are trying to install salt master in an environment with no internet connection on a centos 6 machine. As mentioned in other threads we are trying to rsync the packages.

We ran the following command

cd /home/vagrant
rsync -vaH --numeric-ids --delete --delete-after --delay-updates rsync://repo.saltstack.com/saltstack_pkgrepo_rhel ./rhel

This command executes successfully.

Next we run the following command

createrepo /home/vagrant/rhel

The following errors are then observed

Spawning worker 0 with 366776 pkgs
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-crypto-2.6.1-2.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/babel-0.9.4-5.1.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/libyaml-0.1.3-4.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-futures-3.0.3-1.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-raet-0.6.3-2.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-jinja2-2.2.1-2.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-ioflo-1.3.8-1.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package
Worker 0: Error: Could not open local rpm file: /home/vagrant/rhel/redhat/6.4/x86_64/archive/2015.5.6/SRPMS/python-markupsafe-0.11-10.el6.src.rpm: RPM Error opening Package
Worker 0: error: not an rpm package

I am fairly new to rsync and create repos so would really appreciate if someone could guide me as to what I am doing wrong.

Appreciate your help in advance.

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

I’m trying to install MYSQL instead of MariaDB on my CentOS 7. I used this command:

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

yum install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

as root. but i got error and nothing happen:

Loaded plugins: fastestmirror
mysql-community-release-el7-5.noarch.rpm | 5.2 kB 00:00
Cannot open: http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm. Skipping.
Error: Nothing to do

what should I do?

asked Jun 23, 2016 at 10:06

saeed Am's user avatar

you have tried from banned countries. if you open the link in your browser you would see the message «In compliance with U.S. and applicable Export laws we are unable to process your request. Please contact RPLS-Ops_ww@oracle.com if you believe you are receiving this notice in error.»
you should download using another ip provided by vpn or proxy.

answered Dec 10, 2018 at 9:15

user2876389's user avatar

The wget command will download the package to your current directory . Once it is downloaded you can simply install it using the rpm command with the package name and not the complete link as

rpm -Uvh mysql-community-release-el7-5.noarch.rpm

In case this shows some unfulfilled dependencies , you can use

yum localinstall mysql-community-release-el7-5.noarch.rpm

to try and install the dependencies as well from the repositories.

stambata's user avatar

stambata

1,6183 gold badges13 silver badges18 bronze badges

answered Jun 23, 2016 at 10:40

Rohit Nagpal's user avatar

4

Понравилась статья? Поделить с друзьями:
  • Rpm error log
  • Rpm error cannot open packages index using db5 30969
  • Rpm error cannot open packages database in var lib rpm
  • Rpg maker mv как изменить главное меню
  • Rpg 2000 ошибка