span.fullpost {display:inline;}

Sunday, July 20, 2008

Forcing Installs with Up2date

If you have trouble with dependencies running up2date, the Red Hat update system, you can force download and installs by downloading the packages regardless of dependencies and then forcing the install. Be careful when you do this, or course. The system is there to make sure you install the correct packages, so if up2date tells you you need a dependency, you may very well need it. We ran into an interesting problem with a gcc upgrade.

We solved it by downloading the package and then forcing the install with the nodeps option:

[root@srv-6 up2date]# up2date --get gcc --tmpdir=/root/
Fetching all package list for channel: rhel-i386-es-3...
########################################
Fetching all package list for channel: rhel-i386-es-3-extras...
########################################
Fetching package list for channel: rhel-i386-es-3...
########################################
Fetching package list for channel: rhel-i386-es-3-extras...
########################################
gcc-3.2.3-53.i386.rpm...
########################################
[root@srv-6 up2date]#


Now let's force the install with nodeps:

[root@srv-6 root]# rpm -Fvh gcc*.rpm --nodeps
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
[root@srv-6 root]#

0 comments:

Tutorialsland By - Templates4all | Free Blogger and web Templates
Free Website templatesFree Flash TemplatesFree joomla templatesSEO Web Design AgencyMusic Videos OnlineFree Wordpress Themes Templatesfreethemes4all.comFree Blog TemplatesLast NewsFree CMS TemplatesFree CSS TemplatesSoccer Videos OnlineFree Wordpress ThemesFree Web Templates