Welcome, To Be Efficient


Monday, June 29, 2009

YUM SERVER steps

1st step :- copy the Server Folder from DVD or CD

2nd step :- after copied
root> cd /Server
Server> rpm -ivh createrepo(tab) install it
Server> cd /etc/yum.repos.d/
yum.repos.d> ll (enter)
yum.repos.d> rhel.....................( there is a file avilable with the name of rhel......)
yum.repos.d> cp -rf rhel........ xyz.repo (copy the file in any name, extention must be .repo)
yum.repos.d> vi xyz.repo

[ rhel ] or any thing
name = Redhat enterprise linux ( leave this line and delete all)
Baseurl=file:///Server ( path of the folder )
gpgcheck=0
enabled=1
save this file

3rd step :-
> createrepo -v /Server ( this is must be run then the YUM server is fine)
> service yum-updatesd restart
> chkconfig yum-updatesd on
Thats all finish yum server is installed and it will work

for install any package

> yum install java*

for remove

> yum remove java*


to check any package is installed or not

> rpm -qa (packagename) if installed it will see otherwise nothing happend

No comments:

Post a Comment

Disclaimer

.........................................................................................................................................................
The all content are through my experiences, that i have learn in going through Studies and in building projects, some of were taken from some web sites, books and other sources, where i have visited and learn the concepts, I am very thankful to them for having those valuable things, which make me more efficient, and i have added those all in my experience. If any of these content violets copyrights, please contact me i will try to resolve and will do the needful assistance. Thank you all very much.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................