<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How To Download a RPM Package Using yum Command Without Installing On Linux</title> <atom:link href="http://www.cyberciti.biz/faq/yum-downloadonly-plugin/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Rodger</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-64985</link> <dc:creator>Rodger</dc:creator> <pubDate>Tue, 29 Nov 2011 19:46:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-64985</guid> <description>Hello,
My system:
Oracle Redhat 5.5
cat /proc/version
Linux version 2.6.18-194.el5xen (mockbuild@ca-build10.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 22:22:00 EDT 2010
I&#039;m trying to get yum to work.
I tried your command.
yum -v  install yum-downloadonly
Loading &quot;security&quot; plugin
Config time: 0.040
Yum Version: 3.2.22
Setting up Package Sacks
rpmdb time: 0.000
Setting up Install Process
Setting up Package Sacks
Checking for virtual provide or file-provide for yum-downloadonly
Searching pkgSack for dep: yum-downloadonly
Setting up Package Sacks
No package yum-downloadonly available.
Setting up Package Sacks
Nothing to do
Is there some kind of configuration I need to do first?
If so, what is a link explaining this?
Thanks a lot!</description> <content:encoded><![CDATA[<p>Hello,</p><p>My system:<br
/> Oracle Redhat 5.5</p><p>cat /proc/version<br
/> Linux version 2.6.18-194.el5xen (mockbuild@ca-build10.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 22:22:00 EDT 2010</p><p>I&#8217;m trying to get yum to work.<br
/> I tried your command.</p><p>yum -v  install yum-downloadonly</p><p>Loading &#8220;security&#8221; plugin<br
/> Config time: 0.040<br
/> Yum Version: 3.2.22<br
/> Setting up Package Sacks<br
/> rpmdb time: 0.000<br
/> Setting up Install Process<br
/> Setting up Package Sacks<br
/> Checking for virtual provide or file-provide for yum-downloadonly<br
/> Searching pkgSack for dep: yum-downloadonly<br
/> Setting up Package Sacks<br
/> No package yum-downloadonly available.<br
/> Setting up Package Sacks<br
/> Nothing to do</p><p>Is there some kind of configuration I need to do first?</p><p>If so, what is a link explaining this?</p><p>Thanks a lot!</p> ]]></content:encoded> </item> <item><title>By: Nick Webb</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-64651</link> <dc:creator>Nick Webb</dc:creator> <pubDate>Mon, 21 Nov 2011 01:51:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-64651</guid> <description>I just did this today on CentOS 4.x... you can&#039;t really do the same thing, but you can download all the needed updates to a directory, then install at your leisure with &#039;rpm -Uvh *.rpm&#039;.  Here is the command I used:
yum check-update &#124; egrep &#039;(base&#124;updates)&#039; &#124; awk &#039;{ print $1 }&#039; &#124; xargs -n 10 yumdownloader</description> <content:encoded><![CDATA[<p>I just did this today on CentOS 4.x&#8230; you can&#8217;t really do the same thing, but you can download all the needed updates to a directory, then install at your leisure with &#8216;rpm -Uvh *.rpm&#8217;.  Here is the command I used:</p><p>yum check-update | egrep &#8216;(base|updates)&#8217; | awk &#8216;{ print $1 }&#8217; | xargs -n 10 yumdownloader</p> ]]></content:encoded> </item> <item><title>By: Glauco Furlaneto</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-64066</link> <dc:creator>Glauco Furlaneto</dc:creator> <pubDate>Thu, 03 Nov 2011 09:48:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-64066</guid> <description>Excelent article, Vivek Gite.
[]&#039;s</description> <content:encoded><![CDATA[<p>Excelent article, Vivek Gite.<br
/> []&#8216;s</p> ]]></content:encoded> </item> <item><title>By: Sandy</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-63738</link> <dc:creator>Sandy</dc:creator> <pubDate>Thu, 20 Oct 2011 12:48:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-63738</guid> <description>Yeah.. I figured it out myself. I followed the below sequense to install downloaded RPM updates on a offline machine.
First downloaded RPM updates on a RHN registered machine in the following way,
1) yum install yum-downloadonly // installed yum download only plugin
//Downloaded availbale RPM updates to the /root/RPM_Updates/downloads directory
2) yum update -y --downloadonly --downloaddir=/root/RPM_Updates/downloads
3) Packaged these downloads into a tar file and transferred them to the offline machine.
On a offline machine, I created a local repository of downloaded RPMs and installed them using yum update command. in the following way,
1) Untar&#039;ed RPM updates to the &quot;/root/RPM_Updates/downloads&quot; directory
2) Created rhel_local.repo file with the following content and copied it into /etc/yum.repos.d directory,
[rhel-local]
name=rhel-local $releaseserver $basearch - rhel-local
baseurl=file:///root/RPM_Updates/downloads
enabled=1
gpgcheck=0
3) Installed createrepo rpm using Yum localinstall command.
yum localinstall createrepo-0.4.11-3.el5.noarch.rpm # Before executing this command, This RPM was downloaded from the RHN connected machine and copied to this offline machine.
4) createrepo /root/RPM_Updates/downloads # Created local repository with this command.
5) Yum update -y # Hurrah I succefully installed RPM updates now from the local repository with out any need of registering the machine with RHN. Ofcourse, I downloded these updated RPMs from the official RHN registered machine :)</description> <content:encoded><![CDATA[<p>Yeah.. I figured it out myself. I followed the below sequense to install downloaded RPM updates on a offline machine.</p><p>First downloaded RPM updates on a RHN registered machine in the following way,<br
/> 1) yum install yum-downloadonly // installed yum download only plugin<br
/> //Downloaded availbale RPM updates to the /root/RPM_Updates/downloads directory<br
/> 2) yum update -y &#8211;downloadonly &#8211;downloaddir=/root/RPM_Updates/downloads<br
/> 3) Packaged these downloads into a tar file and transferred them to the offline machine.</p><p>On a offline machine, I created a local repository of downloaded RPMs and installed them using yum update command. in the following way,<br
/> 1) Untar&#8217;ed RPM updates to the &#8220;/root/RPM_Updates/downloads&#8221; directory<br
/> 2) Created rhel_local.repo file with the following content and copied it into /etc/yum.repos.d directory,</p><p>[rhel-local]<br
/> name=rhel-local $releaseserver $basearch &#8211; rhel-local<br
/> baseurl=file:///root/RPM_Updates/downloads<br
/> enabled=1<br
/> gpgcheck=0</p><p>3) Installed createrepo rpm using Yum localinstall command.<br
/> yum localinstall createrepo-0.4.11-3.el5.noarch.rpm # Before executing this command, This RPM was downloaded from the RHN connected machine and copied to this offline machine.<br
/> 4) createrepo /root/RPM_Updates/downloads # Created local repository with this command.<br
/> 5) Yum update -y # Hurrah I succefully installed RPM updates now from the local repository with out any need of registering the machine with RHN. Ofcourse, I downloded these updated RPMs from the official RHN registered machine :)</p> ]]></content:encoded> </item> <item><title>By: Sandy</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-62801</link> <dc:creator>Sandy</dc:creator> <pubDate>Sun, 25 Sep 2011 16:40:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-62801</guid> <description>One more quick point, I am allowed to use/setup any yum repositories to achieve these automated updates of RPMs installed on a offline machine.</description> <content:encoded><![CDATA[<p>One more quick point, I am allowed to use/setup any yum repositories to achieve these automated updates of RPMs installed on a offline machine.</p> ]]></content:encoded> </item> <item><title>By: Sandy</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-62800</link> <dc:creator>Sandy</dc:creator> <pubDate>Sun, 25 Sep 2011 16:27:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-62800</guid> <description>Jai Thanks for the reply.
I understand that &quot;rpm -Uvh&quot; can update installed packages but it can not resolve dependencies on its own. Ok, let me put my question this way,
why &quot;yum localupdate * &quot; command on RHN connected machine is resolving dependencies on its own ? and why not the same command on an offline machine can not resolve all dependencies though all dependent packages are in the same local directory ?
My intention here is, do not resolve any dependency issues manually on an offline machine. localupdate by name it should behave similar on a RHN connected machine as well as on an offline machine.
Correct me if I am missing anything during packaging and extracting on an offline machine.
I downloaded all updates using &quot; yum update -y --downloadonly --downloaddir=/tmp &quot; and copied all these files to offline machine and ran &quot;yum localupdate * &quot; command.
Thanks,
Sandy</description> <content:encoded><![CDATA[<p>Jai Thanks for the reply.</p><p> I understand that &#8220;rpm -Uvh&#8221; can update installed packages but it can not resolve dependencies on its own. Ok, let me put my question this way,<br
/> why &#8220;yum localupdate * &#8221; command on RHN connected machine is resolving dependencies on its own ? and why not the same command on an offline machine can not resolve all dependencies though all dependent packages are in the same local directory ?<br
/> My intention here is, do not resolve any dependency issues manually on an offline machine. localupdate by name it should behave similar on a RHN connected machine as well as on an offline machine.</p><p>Correct me if I am missing anything during packaging and extracting on an offline machine.<br
/> I downloaded all updates using &#8221; yum update -y &#8211;downloadonly &#8211;downloaddir=/tmp &#8221; and copied all these files to offline machine and ran &#8220;yum localupdate * &#8221; command.</p><p>Thanks,<br
/> Sandy</p> ]]></content:encoded> </item> <item><title>By: jayaram Prasad</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-62655</link> <dc:creator>jayaram Prasad</dc:creator> <pubDate>Thu, 22 Sep 2011 03:22:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-62655</guid> <description>Then why cant you prepare a shellscript by including all the packages to be installed at once by giving the location too...
I mean we could try like rpm -Uvh some-thing.rpm
to install use just rpm -ivh some-thing.rpm
make this like a shell script and install them...</description> <content:encoded><![CDATA[<p>Then why cant you prepare a shellscript by including all the packages to be installed at once by giving the location too&#8230;<br
/> I mean we could try like rpm -Uvh some-thing.rpm<br
/> to install use just rpm -ivh some-thing.rpm<br
/> make this like a shell script and install them&#8230;</p> ]]></content:encoded> </item> <item><title>By: Sandy</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-62636</link> <dc:creator>Sandy</dc:creator> <pubDate>Wed, 21 Sep 2011 13:27:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-62636</guid> <description>We have RHN subsciption and successfully downloaded updates available to the specified destination directory.
I copied these downloaded files to RHEL5.5 machine.(which can not be kept under network due to security reasons)
Now, I need to do offline install/update of  the downloaded packages on this machine.But failed to do this. Any suggestions ?
I used &quot;yum localupdate *&quot; command to perform this operation.
One strange fact is, yum localupdate command is resolving dependancies when connected to RHN. But, on a offline machine even though I have copied all dependant packages it is not resolving dependencies(For Ex., to update an already installed package it is unable to install a new package available in the same directory).
Any help is appreciated.
Thanks,
Sandy</description> <content:encoded><![CDATA[<p>We have RHN subsciption and successfully downloaded updates available to the specified destination directory.</p><p>I copied these downloaded files to RHEL5.5 machine.(which can not be kept under network due to security reasons)<br
/> Now, I need to do offline install/update of  the downloaded packages on this machine.But failed to do this. Any suggestions ?<br
/> I used &#8220;yum localupdate *&#8221; command to perform this operation.</p><p>One strange fact is, yum localupdate command is resolving dependancies when connected to RHN. But, on a offline machine even though I have copied all dependant packages it is not resolving dependencies(For Ex., to update an already installed package it is unable to install a new package available in the same directory).</p><p>Any help is appreciated.</p><p>Thanks,<br
/> Sandy</p> ]]></content:encoded> </item> <item><title>By: Jayaram Prasad</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-61740</link> <dc:creator>Jayaram Prasad</dc:creator> <pubDate>Sat, 20 Aug 2011 17:59:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-61740</guid> <description>Yes,
Its great tool....I did the following steps to download CPP rpms
yum install yum-downloadonly
yumdownloader gcc
Jai.</description> <content:encoded><![CDATA[<p>Yes,</p><p>Its great tool&#8230;.I did the following steps to download CPP rpms</p><p>yum install yum-downloadonly</p><p>yumdownloader gcc</p><p>Jai.</p> ]]></content:encoded> </item> <item><title>By: Pioup</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-61613</link> <dc:creator>Pioup</dc:creator> <pubDate>Tue, 16 Aug 2011 19:45:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-61613</guid> <description>And how I can download &quot;yum-downloadonly-plugin&quot; without install it ????
This is the big lack I can&#039;t stand on &quot;Yum&quot; distros! How I can do my scripts post-installation with a such lack?
This package is not heavy, so why isn&#039;t not installed in standard?</description> <content:encoded><![CDATA[<p>And how I can download &#8220;yum-downloadonly-plugin&#8221; without install it ????<br
/> This is the big lack I can&#8217;t stand on &#8220;Yum&#8221; distros! How I can do my scripts post-installation with a such lack?<br
/> This package is not heavy, so why isn&#8217;t not installed in standard?</p> ]]></content:encoded> </item> <item><title>By: Raju Hasan</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-59613</link> <dc:creator>Raju Hasan</dc:creator> <pubDate>Wed, 25 May 2011 00:44:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-59613</guid> <description>How do i download mediaplayer for Redhat 5 with windows moode?</description> <content:encoded><![CDATA[<p>How do i download mediaplayer for Redhat 5 with windows moode?</p> ]]></content:encoded> </item> <item><title>By: asdf@asdf.tld</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-57407</link> <dc:creator>asdf@asdf.tld</dc:creator> <pubDate>Tue, 19 Apr 2011 13:36:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-57407</guid> <description>p.s.
a quick followup, I wanted to download a copy of the package rpm that I already have installed, so I did a
yum reinstall --downloadonly --downloaddir=/home/bob  package-1.3-7
but if you want to download a copy of a package older then you have then
yum downgrade --downloadonly --downloaddir=/home/bob package-1.3-1</description> <content:encoded><![CDATA[<p>p.s.</p><p>a quick followup, I wanted to download a copy of the package rpm that I already have installed, so I did a</p><p>yum reinstall &#8211;downloadonly &#8211;downloaddir=/home/bob  package-1.3-7</p><p>but if you want to download a copy of a package older then you have then</p><p>yum downgrade &#8211;downloadonly &#8211;downloaddir=/home/bob package-1.3-1</p> ]]></content:encoded> </item> <item><title>By: asdf@asdf.tld</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-57406</link> <dc:creator>asdf@asdf.tld</dc:creator> <pubDate>Tue, 19 Apr 2011 13:31:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-57406</guid> <description>reinstall  &lt;&lt;&lt; omg   this is brilliant.
so obvious so simple.   there are thousands of posts on the internet that say you can&#039;t force install using yum if you already have the package installed, yet your needled in the haystack post, proves them all wrong.
this worked for me.  i accidently erased 1 file from a package.  i just need to put that one file back, so i used the reinstall option, and the download only option, and then extracted the rpm package, and placed that one single file back.  brilliant.
thanks!!!!!</description> <content:encoded><![CDATA[<p>reinstall  &lt;&lt;&lt; omg   this is brilliant.</p><p>so obvious so simple.   there are thousands of posts on the internet that say you can&#039;t force install using yum if you already have the package installed, yet your needled in the haystack post, proves them all wrong.</p><p>this worked for me.  i accidently erased 1 file from a package.  i just need to put that one file back, so i used the reinstall option, and the download only option, and then extracted the rpm package, and placed that one single file back.  brilliant.</p><p>thanks!!!!!</p> ]]></content:encoded> </item> <item><title>By: poboy</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-51388</link> <dc:creator>poboy</dc:creator> <pubDate>Tue, 07 Dec 2010 09:06:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-51388</guid> <description>thanks very much!</description> <content:encoded><![CDATA[<p>thanks very much!</p> ]]></content:encoded> </item> <item><title>By: Golda</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-50429</link> <dc:creator>Golda</dc:creator> <pubDate>Fri, 29 Oct 2010 12:54:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-50429</guid> <description>You can do
yum reinstall [package] --downloadonly
and it will stop during the reinstall and leave the package in a subdirectory of
/var/cache/yum
this worked better for me than using --installroot</description> <content:encoded><![CDATA[<p>You can do<br
/> yum reinstall [package] &#8211;downloadonly<br
/> and it will stop during the reinstall and leave the package in a subdirectory of<br
/> /var/cache/yum<br
/> this worked better for me than using &#8211;installroot</p> ]]></content:encoded> </item> <item><title>By: Hari</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-46961</link> <dc:creator>Hari</dc:creator> <pubDate>Wed, 21 Apr 2010 02:28:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-46961</guid> <description>Thank  you so much for this guide, it helped me to download R-core and about 15 of its missing dependencies that I needed in a single shot for a later install.</description> <content:encoded><![CDATA[<p>Thank  you so much for this guide, it helped me to download R-core and about 15 of its missing dependencies that I needed in a single shot for a later install.</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-46298</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Tue, 09 Mar 2010 05:54:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-46298</guid> <description>@ milek,
Thanks for the heads up. The faq has been updated.</description> <content:encoded><![CDATA[<p>@ milek,</p><p>Thanks for the heads up. The faq has been updated.</p> ]]></content:encoded> </item> <item><title>By: James</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-46013</link> <dc:creator>James</dc:creator> <pubDate>Wed, 17 Feb 2010 14:21:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-46013</guid> <description>great milek! thats just what i was looking for, thanks!</description> <content:encoded><![CDATA[<p>great milek! thats just what i was looking for, thanks!</p> ]]></content:encoded> </item> <item><title>By: milek</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-44448</link> <dc:creator>milek</dc:creator> <pubDate>Wed, 04 Nov 2009 21:46:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-44448</guid> <description>Or just use:
&lt;code&gt;yumdownloader [package]&lt;/code&gt;
to download file in current dir
yumdownloader is part of yum-utils package:
yum install yum-utils</description> <content:encoded><![CDATA[<p>Or just use:<br
/> <code>yumdownloader [package]</code><br
/> to download file in current dir<br
/> yumdownloader is part of yum-utils package:<br
/> yum install yum-utils</p> ]]></content:encoded> </item> <item><title>By: dan</title><link>http://www.cyberciti.biz/faq/yum-downloadonly-plugin/#comment-44174</link> <dc:creator>dan</dc:creator> <pubDate>Wed, 21 Oct 2009 14:51:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1181#comment-44174</guid> <description>This works great - thanks for the tip !</description> <content:encoded><![CDATA[<p>This works great &#8211; thanks for the tip !</p> ]]></content:encoded> </item> </channel> </rss>
