<br><br>
<div class="gmail_quote">On Wed, Dec 23, 2009 at 2:45 PM, fred smith <span dir="ltr"><<a href="mailto:fredex@fcshome.stoneham.ma.us">fredex@fcshome.stoneham.ma.us</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">On Wed, Dec 23, 2009 at 12:12:16PM +0000, hadi motamedi wrote:<br>> On Wed, Dec 23, 2009 at 12:08 PM, Ray Van Dolson <<a href="mailto:rayvd@bludgeon.org">rayvd@bludgeon.org</a>> wrote:<br>><br>
> > On Wed, Dec 23, 2009 at 12:03:58PM +0000, hadi motamedi wrote:<br>> > > On Wed, Dec 23, 2009 at 12:00 PM, Ray Van Dolson <<a href="mailto:rayvd@bludgeon.org">rayvd@bludgeon.org</a>><br>> > wrote:<br>
> > ><br>> > > >  On Wed, Dec 23, 2009 at 11:44:16AM +0000, hadi motamedi wrote:<br>> > > > > Dear All<br>> > > > > I want to add "yum" to my CentOS 5.2 so I downloaded the rpm package<br>
> > from<br>> > > > > the <a href="http://www.pbone.net/" target="_blank">www.pbone.net</a> . But I didn't have success in installing it so<br>> > please<br>> > > > let<br>> > > > > me know if there is another way to accomplish this job ?<br>
> > > > > Thank you in advance<br>> > > ><br>> > > > Yum is installed by default in CentOS 5.x.  Just run 'yum'.<br>> > > ><br>> > ><br>> > > Thanks for your reply . But for unknown reasons the yum is not available<br>
> > on<br>> > > my CentOS .<br>> > > [root@mss-1 tmp]# more /etc/redhat-release<br>> > > CentOS release 5.2 (Final)<br>> > > [root@mss-1 tmp]# yum<br>> > > -bash: yum: command not found<br>
> > > Can you please let me know how can I install it ?<br>> ><br>> > Strange.  What's the output of rpm -q yum?<br>> ><br>> > You could manually install the RPM's from:<br>> ><br>
> >  <a href="http://mirror.stanford.edu/yum/pub/centos/5/os/" target="_blank">http://mirror.stanford.edu/yum/pub/centos/5/os/</a><br>> ><br>> > Pick the correct architecture... and you'll have to resolve some<br>
> > dependancies manually.<br>> ><br>> > Ray<br>><br>><br></div></div>
<div class="im">> The output is as :<br>> [root@mss-1 tmp]# rpm -qa |grep yum<br>> yum-arch-2.2.2-2.el5.kb<br><br></div>Strange. when I run that on my Centos 5.4, I get:<br><br>       # rpm -q yum<br>       yum-3.2.22-20.el5.centos<br>
<br>which I would assume to be different than "yum-arch-..." I DO NOT find<br>yum-arch at all. Dunno what yum-arch contains, but I wonder if it is not<br>a complete yum installation. On the off-chance that it is, you could try:<br>
<br>ls -l `rpm -ql yum-arch-2.2.2-2.el5.kb` | less<br><br>to see what files it contains, and whether all of them are actually still<br>on your disk, or not.<br><br>And as others have suggested, you may want/need to download the appropriate<br>
yum rpm file from a Centos mirror and install it with rpm before you can<br>actually use yum.<br><font color="#888888"><br>--<br>---- Fred Smith -- <a href="mailto:fredex@fcshome.stoneham.ma.us">fredex@fcshome.stoneham.ma.us</a> -----------------------------<br>
                       The Lord is like a strong tower.<br>            Those who do what is right can run to him for safety.<br>--------------------------- Proverbs 18:10 (niv) -----------------------------<br></font>
<div>
<div></div>
<div class="h5">_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div>
<div><br> </div>
<div>Thank you for your help . To this end , I tried as the followings :</div>
<div>"</div>
<div>[root@mss-1 tmp]# rpm -Uvh yum-arch-2.2.2-2.el5.kb.noarch.rpm<br>warning: yum-arch-2.2.2-2.el5.kb.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 3e13cf5b<br>Preparing...                ########################################### [100%]<br>
        package yum-arch-2.2.2-2.el5.kb is already installed<br>[root@mss-1 tmp]# whereis yum<br>yum:<br>[root@mss-1 tmp]#</div>
<div>"</div>
<div>Can you please let me know why the yum is still unavailable?</div>
<div> </div>