Quote:
Originally Posted by prak86
I tried using the yum , but it throws the following error.
# yum install e2fsprogs-devel-1.35-12.5.el4.i386
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base
|
There are so many problems with this that it is hard to know where to start. Clearly, the gnu/linux method of maintaining a system is very new to you. You will find there is a considerable payoff to learning how yum works: the
yum man page is uncommonly useful with this.
The command as stated will not work because you have been too specific in specifying the package to install. You do not use the version numbers for example - the point of yum is that it always gets the latest packages for your system.
You have been self-installing software from rpm - this may conflict with some yum installs if only because yum does not know about them. Usually yum just reinstalls any dependencies you may already have but have not been installed via yum. However - it seems likely from your posts that you have installed el4 rpms which would be very bad indeed. Probably best to explicitly remove all those by hand first.
Next you want to make sure all your repos are enabled. The links I gave you before should tell you how to do this.
Next - upgrade your system, so all the latest packages are installed.
yum upgrade
This will take a while, depending on your connection, but that is the penalty for not using the standard methods. It will pay off later when you need to do installs. It also pays off in terms of security and bugfixes... so it would be unprofessional of me to suggest you do otherwise.
After all that - think: what is the program you want to install so as to include all dependencies automatically? Once you figure that out, you need to find out what it's package is called in the repo.
eg. to install openssl and everything it needs to run, enter:
yum install openssl
note: no version numbers.
development packages do need to be installed seperately - so if you
know you need openssl and development - you enter:
yum install openssl openssl-dev
here I am guessing that the contos repo names development packages as package-dev - which is a common convention. It may not be the case.
You can find the package name for program foo with
yum search foo
which will tell you all packages with anything to do with foo. Search that list for the core package which contains the actual program and install that.
yum search ssl
You may prefer:
yum list available foo
instead.
If you have a GUI installed, you may prefer to use a GUI front-end to yum. IIRC: the one you want for centos is called yum extender:
yum install yumex
I see documentation for yumex in centos 4 but not 5 - perhaps a centos user can explain? The C4 documentation suggests that it should already be installed.
Anyway, the gui allows you to browse the repos for packages you may want as well as control which repos are active at a particular time.
You have a wonderful adventure ahead of you - have fun and let us know how you went.
As to that actual error - perhaps you are behind a proxy?
http://www.linuxquestions.org/questi...ntos-5-695319/