LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to download packages (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-download-packages-4175412001/)

ravi_nandula 06-18-2012 01:31 AM

how to download packages
 
Hi everyone,

I am new to linux.And at present I am learning Linux .

My problem....when ever I am trying to install a package in my OS...that package is not avaiable in my repos....So Im downloading manually in the browser and trying to install the rpm package Im getting following error...

warning: vsftpd-2.0.5-12.el5.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 82fd17b2: NOKEY
error: Failed dependencies:
/lib/security/pam_loginuid.so is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6 is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.0) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.1) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.1.3) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.2) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.3) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.3.4) is needed by vsftpd-2.0.5-12.el5.i386
libc.so.6(GLIBC_2.4) is needed by vsftpd-2.0.5-12.el5.i386
libcap.so.1 is needed by vsftpd-2.0.5-12.el5.i386
libcrypto.so.6 is needed by vsftpd-2.0.5-12.el5.i386
libdl.so.2 is needed by vsftpd-2.0.5-12.el5.i386
libnsl.so.1 is needed by vsftpd-2.0.5-12.el5.i386
libpam.so.0 is needed by vsftpd-2.0.5-12.el5.i386
libpam.so.0(LIBPAM_1.0) is needed by vsftpd-2.0.5-12.el5.i386
libssl.so.6 is needed by vsftpd-2.0.5-12.el5.i386
libwrap.so.0 is needed by vsftpd-2.0.5-12.el5.i386
Im getting Failed dependencies.....I can't download and list those many dependecies for a single package.....So please tell me the any best way to get package and install it.

My system is not registered with RHN......

TobiSGD 06-18-2012 01:36 AM

If your system is not registered to RHN (which would cost you money) then you shouldn't use RHEL in the first place. Install CentOS instead, it is a free version of RHEL without the branding. It will function in the same way and you will be able to install packages using the yum package manager.

ravi_nandula 06-18-2012 01:38 AM

Quote:

Originally Posted by TobiSGD (Post 4705837)
If your system is not registered to RHN (which would cost you money) then you shouldn't use RHEL in the first place. Install CentOS instead, it is a free version of RHEL without the branding. It will function in the same way and you will be able to install packages using the yum package manager.

ooh ok .....So in order to install the Packages in my RHEL 6....I should compulsory resgisted with Redhat Network (RHN)???????????
otherwise I can't install any packages.....which are not in my repos

TobiSGD 06-18-2012 01:43 AM

You can install any package that is meant for your distribution. Your first problem is that you downloaded the packages for RHEL 5, they won't work on RHEL 6. The second problem is that you also have to download and install all packages that are listed as dependencies for the package you want to install. Normally this would be done by the yum package manager automatically, but since you aren't registered (the cheapest option is 49$/year, IIRC) you have to do it manually. With CentOS you will get this functionality for free.

ravi_nandula 06-18-2012 04:37 AM

Quote:

Originally Posted by TobiSGD (Post 4705840)
You can install any package that is meant for your distribution. Your first problem is that you downloaded the packages for RHEL 5, they won't work on RHEL 6. The second problem is that you also have to download and install all packages that are listed as dependencies for the package you want to install. Normally this would be done by the yum package manager automatically, but since you aren't registered (the cheapest option is 49$/year, IIRC) you have to do it manually. With CentOS you will get this functionality for free.

Installed CentOS 6.2 .....After completing reboot......I gave command " yum list all "..........and I got the following output....


Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

acid_kewpie 06-18-2012 04:41 AM

that's a generic network error. check your DNS settings, default gateway etc. until you can run "ping mirrorlist.centos.org" don't look at anything more complex.

ravi_nandula 06-18-2012 04:43 AM

Quote:

Originally Posted by acid_kewpie (Post 4705922)
that's a generic network error. check your DNS settings, default gateway etc. until you can run "ping mirrorlist.centos.org" don't look at anything more complex.

yah I am able to ping it


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