How can i offline update glibc?

Latest response

I have a subscription but can't regist, because firewall policy.

so i downloaded packages glibc, glibc-common
and createrepo

[root@test ~]# yum update glibc
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
This system is not registered with RHN.
RHN Satellite or RHN Classic support will be disabled.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.80.el6_3.7 will be updated
--> Processing Dependency: glibc = 2.12-1.80.el6_3.7 for package: glibc-common-2.12-1.80.el6_3.7.x86_64
---> Package glibc.x86_64 0:2.12-1.149.el6_6.4 will be an update
--> Processing Dependency: glibc-common = 2.12-1.149.el6_6.4 for package: glibc-2.12-1.149.el6_6.4.x86_64
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.149.el6_6.4 will be an update
--> Processing Dependency: glibc-common = 2.12-1.149.el6_6.4 for package: glibc-2.12-1.149.el6_6.4.x86_64
---> Package glibc-common.x86_64 0:2.12-1.80.el6_3.7 will be updated
---> Package glibc-common.x86_64 0:2.12-1.149.el6_6.5 will be an update
--> Processing Dependency: glibc = 2.12-1.149.el6_6.5 for package: glibc-common-2.12-1.149.el6_6.5.x86_64
--> Finished Dependency Resolution
Error: Package: glibc-common-2.12-1.149.el6_6.5.x86_64 (temp)
           Requires: glibc = 2.12-1.149.el6_6.5
           Removing: glibc-2.12-1.80.el6_3.7.x86_64 (@rhel-x86_64-server-6.3.z)
               glibc = 2.12-1.80.el6_3.7
           Updated By: glibc-2.12-1.149.el6_6.4.x86_64 (temp)
               glibc = 2.12-1.149.el6_6.4
Error: Package: glibc-2.12-1.149.el6_6.4.x86_64 (temp)
           Requires: glibc-common = 2.12-1.149.el6_6.4
           Removing: glibc-common-2.12-1.80.el6_3.7.x86_64 (@rhel-x86_64-server-6.3.z)
               glibc-common = 2.12-1.80.el6_3.7
           Updated By: glibc-common-2.12-1.149.el6_6.5.x86_64 (temp)
               glibc-common = 2.12-1.149.el6_6.5
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

How can I solve this?

Can I Only

 rpm -Uvh --force PACKAGEFILE

this way?

Responses

The System is RHEL 6.3 Pure (updated nothing)

Sorry. It's solved.

i miss glibc-2.12-1.149.el6_6.5.x86_64 package.

Howto Setup yum repositories to update or install packages offline.

yum (Yellow dog Updater Modified) is a package manager for RPM compatible Linux systems such as CentOS, Fedora core and latest Redhat Enterprise Linux.

So how do you use yum to update / install packages from an ISO or directory?

Creation of yum repositories is handled by a separate tool called createrepo, which generates the necessary XML metadata. If you have a slow internet connection or collection of all downloaded ISO images, use this hack to install rpms from iso images.

Step #1: Put rpm files in directory

Type the following command (replace iso file name with the actual iso file):

yum install createrepo

mkdir -p /opt/GHOST

And copy .rpm files to /opt/GHOST

Step #2: Create a repository
Use createrepo to generate the necessary XML metadata. Type the following commands:

cd /opt/GHOST

createrepo .

Clean repo, enter:

yum clean all

Step #3: Create config file

You need to create a repo config file in /etc/yum.repos.d/ directory.

vim /etc/yum.repos.d/GHOST.repo

Append following text:
[GHOST-repo]
baseurl=file:///opt/GHOST
enabled=1

Save and close the changes.

Step #4: Update YUM

yum update

Now use yum command to install packages from ISO images:

yum install package-name

Hello guys. There is knowledge base article for this:

Installing glibc from rpm fails with missing dependencies on an offline system

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.