Now follow these steps:
- install vsftpd package from DVD, steps are :
From CUI: rpm -ivh /dev/cdrom/Server/vsftpd-*
From GUI: Navigate through your DVD --> Server --> Look for file name starting with vsftpd and double click on it. - Now similarly install createrepo Package.(Just replace vsftpd with createrepo from above step)
- Now copy "Server" Directory from your DVD to the location /var/ftp/pub.
- Now at Terminal type following command:
createrepo -v /var/ftp/pub/Server - Next change your directory to /etc/yum.repos.d/ by using command:
cd /etc/yum.repos.d - Now using a text editor create a file with ".repo" extension, I used nano,
nano server.repo - Now write these lines in the file, just replace "10.0.0.2" with the ip address of your machine:
[Soft server]
name=YUM Server
baseurl=ftp://10.0.0.2/pub/Server
enabled=1
gpgcheck=0 - save the file using ctrl+o, now press ENTER to accept the file name to write and exit with ctrl+x.
- If you performed all the above steps without fail then you re done with your server side configuration.
- Now just copy the file "server.repo" to your client machine,by using the following command on your client LINUX machines:
scp root@10.0.0.2:/etc/yum.repos.d/server.repo /etc/yum.repos.d/
you may be asked to continue type "yes" and press ENTER, now wait system will ask you to enter server's root password.
TO INSTALL A SOFTWARE: yum install packagename
TO REMOVE A SOFTWARE: yum remove packagename
TO SEE ALL INSTALLED AND AVAILABLE PACKAGES : yum list all
Try this Now and tell me in the comments what other info you required on this blog.
No comments:
Post a Comment