Monday 14 May 2012


How to Configure YUM Server on rhel 6



[root@rhel6 ~]# mount /dev/dvdrw /mnt
[root@rhel6 ~]# cd /mnt
[root@rhel6 ~]# cd Packages
[root@rhel6 ~]# rpm –ivh vsftpd……………..
[root@rhel6 ~]# cd /var/ftp/pub
[root@rhel6 ~]# cp –r /mnt/* /var/ftp/pub
[root@rhel6 ~]# service vsftpd start , restart
[root@rhel6 ~]# service network restart
[root@rhel6 Packages]# rpm –ivh deltarpm-3.5-0.5………..
[root@rhel6 Packages]# rpm –ivh python-deltarpm…………..
[root@rhel6 Packages]# rpm –ivh createrepo…………………..
[root@rhel6 Packages]# cd
[root@rhel6 Packages]# vi /etc/yum.repos.d/packages.repo

[Packages]
name=Packages
baseurl=file:///var/ftp/pub/Packages
gpgcheck=0
enabled=1

Press Key-- Esc :wq! {for save file}

[root@rhel6 ~]# createrepo .
[root@rhel6 ~]# createrepo –g /var/ftp/pub
[root@rhel6 ~]# cd /var/ftp/pub
[root@rhel6 ~]# ls
[root@rhel6 ~]# cd repodata
[root@rhel6 ~]# ls
[root@rhel6 ~]# cp 21f8a36d9bca1bca1b6b………….. .. ..Server.xml /tmp/
[root@rhel6 ~]# createrepo -g /tmp/21f8a36d9bca1bca1b6b………….. .. ..Server.xml /var/ftp/pub/Packages/
[root@rhel6 ~]# yum clean all
[root@rhel6 ~]# yum list
[root@rhel6 ~]# yum install kernel*

Note: if any Error plz check iptables –F {Here is firewall off}
Warning: Should be available only one packages.repo file no /etc/yum.repos.d/ Directory not to any others file should be available.
 



How to install Sun-java,jre on Ubuntu 12.04



  # sudo apt-get update
  # sudo apt-add-repository ppa:flexiondotorg/java
  # sudo apt-get update
  # sudo apt-get install sun-java6-jre sun-java6-plugin
  # sudo apt-get install sun-java6-jdk

Enjoy...


































































No comments:

Post a Comment