Skip to content

yum install package compilation issue

I created a local repository in redhat 7.6 and then i am trying to install the package but i am getting the dependency issue.

Error :

[root@ebs-117-41 Packages]# yum install glibc-2.17-222.el7.i686
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
–> Running transaction check
—> Package glibc.i686 0:2.17-222.el7 will be installed
–> Processing Dependency: glibc-common = 2.17-222.el7 for package: glibc-2.17-222.el7.i686
–> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-222.el7.i686
–> Processing Dependency: libfreebl3.so for package: glibc-2.17-222.el7.i686
–> Running transaction check
—> Package glibc.i686 0:2.17-222.el7 will be installed
–> Processing Dependency: glibc-common = 2.17-222.el7 for package: glibc-2.17-222.el7.i686
—> Package nss-softokn-freebl.i686 0:3.34.0-2.el7 will be installed
–> Finished Dependency Resolution
Error: Package: glibc-2.17-222.el7.i686 (customrepo)
Requires: glibc-common = 2.17-222.el7
Installed: glibc-common-2.17-260.el7.x86_64 (@anaconda/7.6)
glibc-common = 2.17-260.el7
Available: glibc-common-2.17-222.el7.x86_64 (customrepo)
glibc-common = 2.17-222.el7
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest

 

Solution :

By mistake I created a local repository with lower version of redhat. so that it’s not compatible when i try to install rpm packages. After i corrected the repository version, it’s okay to install.

In case, If you still continue to see the error after you created the repository with correct version, you need to clean.

 

yum clean all

then execute

yum repolist

Now We can able to install rpm packages on the server using local repository.

 

 

 

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: