LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-31-2009, 05:26 PM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
yum not working for me


Hi,
I want to run the yum command but there are lot of dependent rpms that its asking me to install.Is there a easy way that I can have the yum command without actually going on installing all the dependent files one by one.
Also how can I find what is a dependent RPM for a command without actually trying to install the rpm.

Thanks,
Ajit
 
Old 08-31-2009, 06:32 PM   #2
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Rep: Reputation: 32
Dear Ajit

I assume you are using some version of Fedora? Exactly how are you trying to install yum? Usually it is already there in the packages. If it asks you to install dependent packages you need to do this or the package you are trying to install won't work.
 
Old 08-31-2009, 07:20 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,581

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
as you are using YUM and you did not mention what distro you are running I like mazinoz will go on the deduction you are running a RH project or clone.

you do not need to install yum. the root level commands for yum are basic, but you can always type: yum --help for more options.

basically you do the following:

yum update
yum install package_name
yum remove package_name

those are the 3 main yum commands you need to know right off the bat. use the --help (yes that is 2 '-') to get more options you can also man yum and read the man page for detailed help. although i tend to not like any of the man pages as they are NOT written for the people who need them but for those who already know way more about linux then you and I.
 
Old 08-31-2009, 07:23 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If you installled the GUI, you should find an Add/Remove SW item on the menus, as an alternate option.
yum is part of the default install, so it should be there. You'll need to be root (aka admin) user.
 
1 members found this post helpful.
Old 09-01-2009, 05:20 AM   #5
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Yum is not installed

Quote:
Originally Posted by chrism01 View Post
If you installled the GUI, you should find an Add/Remove SW item on the menus, as an alternate option.
yum is part of the default install, so it should be there. You'll need to be root (aka admin) user.
Hi,
I am not using the GUI version.I am running the command on a server it has RHEL.I also tried the command using root credentials but it gives me the following error

[root@kabru gunge]# yum
bash: yum: command not found

Ajit
 
Old 09-01-2009, 06:21 AM   #6
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
Quote:
Originally Posted by Ajit Gunge View Post
Hi,

Also how can I find what is a dependent RPM for a command without actually trying to install the rpm.

Thanks,
Ajit

Code:
rpm -qR myrpm
Also it appears yum is not installed, or not in your root path.
 
Old 09-01-2009, 07:14 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
YUM is installed by default on RHEL4 onwards. All the versions earlier had up2date.
You will need to install all the packages that YUM depends on else it might not function to your requirements.

Another way which is a workaround is to install apt and rpmforge from dag. Only two rpms are needed to be installed. After installing apt you can use APT to install YUM.
 
Old 09-01-2009, 10:58 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
yum was not on RHEL4 by default, it showed up on RHEL5. Centos has used yum for quite a while (C3?). There are tons of howtos out on the net for installing yum on RHEL4(and earlier).
 
Old 09-01-2009, 06:50 PM   #9
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Cool

Hi Ajit,

First thing check whether YUM packages are installed. You can do so by :
# rpm -qa yum*

Second thing is that you need to check that whether service for YUM (vsftpd) is started or not. You can do so by :
# chkconfig --list vsftpd

Otherwise, you need to reconfigure YUM, and I think that would resolve your problem.

Cheers,
Kapil
 
1 members found this post helpful.
Old 09-01-2009, 06:59 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Not sure about earlier versions but vsftpd does not need to turned on to use yum on RHEL/Centos5.X. vsftpd - Very Secure Ftp Daemon
 
Old 09-01-2009, 10:02 PM   #11
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
FTP has nothing to do with yum.
As mentioned, up until ( & including v4), the default tool on RHEL was 'up2date'.
yum was introduced as of 5.0
Ajit; you need to tell us exactly what version you are running.
Try

cat /etc/redhat-release

and

uname -a

You may be able to backport yum to RHEL v4.
Also, if you are running RHEL, do you have a paid subscription with Redhat? If so you can ask them for support as well.
If not, (and you don't want to pay them), you'll have to switch to Centos (free version of RHEL; latest of both is 5.3 & includes yum).
RH will not allow you to update from their site unless you are registered & have paid.
 
Old 09-02-2009, 01:42 AM   #12
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by chrism01 View Post
FTP has nothing to do with yum.
As mentioned, up until ( & including v4), the default tool on RHEL was 'up2date'.
yum was introduced as of 5.0
Ajit; you need to tell us exactly what version you are running.
Try

cat /etc/redhat-release

and

uname -a

You may be able to backport yum to RHEL v4.
Also, if you are running RHEL, do you have a paid subscription with Redhat? If so you can ask them for support as well.
If not, (and you don't want to pay them), you'll have to switch to Centos (free version of RHEL; latest of both is 5.3 & includes yum).
RH will not allow you to update from their site unless you are registered & have paid.
Hi Chris,
These my respective outputs of the commands that you suggested.
cat /etc/redhat-release
o/p==>Red Hat Enterprise Linux Server release 5.2 (Tikanga)

uname -a
Linux kabru 2.6.18-92.1.13.AV01PAE #1 SMP Thu Oct 30 12:37:20 MDT 2008 i686 i686 i386 GNU/Linux

I am using a registered version.

Thanks,
Ajit
 
Old 09-02-2009, 01:53 AM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Just:
Quote:
yum install whatever
It will list out all the stuff it will install as dependencies. If you do not like what it is trying to install (for whatever reason) just tell it no, otherwise hit yes and install it.

Just so you understand, the package you are trying to install will not run unless all the dependencies are met.
 
Old 09-02-2009, 02:05 AM   #14
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
Quote:
cat /etc/redhat-release
o/p==>Red Hat Enterprise Linux Server release 5.2 (Tikanga)
This RHEL5.2 should have yum already installed. And if you have RHN registration it should work without changing the repositories. If you have not paid RH for support then you can add CentOS5.2 repositories for your use.
 
Old 09-02-2009, 02:50 AM   #15
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Repository addition

Quote:
Originally Posted by linuxlover.chaitanya View Post
This RHEL5.2 should have yum already installed. And if you have RHN registration it should work without changing the repositories. If you have not paid RH for support then you can add CentOS5.2 repositories for your use.
Chaitanaya,
U suggest me to add the Cent0s5.2 repositories.Can you point me to some documetation which I can follow to add the repository.

Ajit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum Not Working dijeshkk Linux - Newbie 7 03-16-2011 01:10 PM
Yum Not Working Help! drumky87 Linux - Software 5 09-27-2008 06:33 PM
yum not working saipraveen Linux - Newbie 4 08-23-2005 12:34 AM
Yum not working acidblue Fedora 3 10-24-2004 09:47 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration