Security plugin in Local yum repository
Hi All,
I have created the local yum repositories for RHEL 5 and RHEL 6 on separate servers.
I have used the "reposync" command to get the packages from RHN.
repo id repo name status
rhel-local Red Hat Enterprise Linux 6Server - x86_64 - local 12,975
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 12,975
Now when am using "security" plugin from client servers I am not getting any output. Am pointing to my local repository.
yum --security check-update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
Limiting package lists to security relevant ones
No packages needed for security; 28 packages available
However when am using security plugin to fetch the update from RHN its working.
yum --security check-update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Limiting package lists to security relevant ones
16 package(s) needed for security, out of 28 available
at.x86_64 3.1.10-44.el6_5.2 rhel-x86_64-server-6
avahi-libs.x86_64 0.6.25-12.el6_5.3 rhel-x86_64-server-6
bash.x86_64 4.1.2-15.el6_5.2 rhel-x86_64-server-6
cpio.x86_64 2.10-12.el6_5 rhel-x86_64-server-6
glibc.x86_64 2.12-1.132.el6_5.4 rhel-x86_64-server-6
glibc-common.x86_64 2.12-1.132.el6_5.4 rhel-x86_64-server-6
glibc-devel.x86_64 2.12-1.132.el6_5.4 rhel-x86_64-server-6
glibc-headers.x86_64 2.12-1.132.el6_5.4 rhel-x86_64-server-6
hwloc.x86_64 1.5-3.el6_5 rhel-x86_64-server-6
initscripts.x86_64 9.03.40-2.el6_5.4 rhel-x86_64-server-6
java-1.6.0-openjdk.x86_64 1:1.6.0.0-7.1.13.4.el6_5 rhel-x86_64-server-6
Please advice.
Thanks,
Gyan
Responses
IIRC you need to use the --download-metadata option with reposync to pull the security metadata down (updateinfo.xml). Are you doing that?
with an option --download-metadata appeared the d19dcf8c4e268c152b123f5997318a~b32f79d38cc6-updateinfo.xml.gz file, but security plug-in doesn't work at the client still.
You'll need to insert it into the repodata as well. Something like
gunzip -c d19dcf8c4e268c152b123f5997318a~b32f79d38cc6-updateinfo.xml.gz > /path/to/updateinfo.xml
rm d19dcf8c4e268c152b123f5997318a~b32f79d38cc6-updateinfo.xml.gz
modifyrepo /path/to/updateinfo.xml /path/to/repo/repodata
should get you to where you can access the updateinfo metadata via yum.
hi i would like to setup local security repository but it doesnot work ,i don't know what wrong if i set command : subscription-manager config --rhsm.manage_repos=1 and run command: yum list-sec ,it can display security patch but when i use command: subscription-manager config --rhsm.manage_repos=0 ,it iust display list-sec done in console
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
