LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum installation in a single machine (https://www.linuxquestions.org/questions/linux-newbie-8/yum-installation-in-a-single-machine-629426/)

prasenjitbehera 03-20-2008 06:14 AM

yum installation in a single machine
 
hi buddy

i hv installed RHEL-5 in my home computer.i want to install rpm through YUM.i have already copied all the rpms from RHEL DVD from Server dir and paste it in to /var/ftp/Pub/Server.then i hv created /etc/yum.repos.d/server.repo and in that i have writen follwing.

[Server]
name=Server1
baseurl=ftp://station1.example.com/var/ftp/pub/Server
gpgcheck=0
enable=1

here station1.example.com is my sysem localhost name

after that i hv done yum clean all and yum update both are workin fine but when i want to install it will give error no -4
so please help me out so that i can install rpm through yum

regards
Prasenjit Behera

simplicissimus 03-21-2008 03:58 AM

why ftp?
 
You have installed all the RPM files on the local machine, into the public ftp server.

Do you plan to make your YUM repository available on the Internet?
Is your FTP server running properly?

If it's only for yourself, then you could set the repository path as a local path instead of the current 'ftp://' (I never tried that, though). Or you could simply use RPM directly - in a certain way that's what YUM does. Maybe something like rpm -Uvh ./*.rpm within your /var/ftp/Pub/Server directory.


Hope this helps,
Regards,
SIMP

Fedora Development


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