A> SERVER SETUP
1. mount 192.168.0.154:/var/ftp/pub/
2. cd /media/Server
3. rpm -ivh createrepo...............
4. rpm -ivh vsftpd..................
5. cd ..
6. cp -vrf /media/* /var/ftp/pub/
7. cd /var/ftp/pub
8. createrepo -v Server
9. createrepo -v Cluster
10. createrepo -v ClusterStorage
11. createrepo -v VT
B> vim /etc/yum.repos.d/server.repo
[Server]
name=RHEL 5 Server
baseurl=file:///var/ftp/pub/
enable=1
gpgcheck=0
C> yum clean all
CLIENT SETUP
[Server]
name=RHEL 5 Server
baseurl=ftp://192.168.0.154/
enable=1
gpgcheck=0
YELLOWDOG UPDATE MANAGER
yum install <pkg> -->installs package
yum remove <pkg> -->remove package
yum list <pkg> -->status of package
yum clean all -->Flush the cache
yum list all -->List all packages in server
yum list available -->List all packages installed
RPM COMMANDS
Zenity -2.16.0 -2.el5 .i386 .rpm
syntax of rpm --> basename-versionnum-release.
1.TO INSTALL
rpm -ivh <pkgname> -->Install a package
rpm -Uvh <pkgname> ->upgrade package even if older version dont exist
rpm -Fvh <pkgname> -->upgrade a packg ONLY if older version exist
rpm -ivh --force coreutils-5.97-12.1.el5.i386.
package is not corrupted but files or commands produced by that package is
corrupted))
2.TO DELETE
rpm -e <basename> -->To erase a package
3.TO QUERY installed packages
rpm -q <basename> -->status of package
rpm -qi <basename> -->Query for info about package
rpm -qd <basename> ->List of documents created by package
rpm -qc <basename> ->List of configuration files created
rpm -ql <basename> -->List of files created by package
rpm -qf <command> -->show package which produced this
4. TO QUERY UN-Installed packages
use -p along with any options + Give full package num instead
of base name.
~
GROUP REPOSITORY
1.mount /dev/cdrom /media
2.cd /media
3.cp Server/repodata/comps-rhel5-
4.cp VT/repodata/comps-rhel5-vt.
5.cp Cluster/repodata/comps-rhel5-
6.cp ClusterStorage/repodata/comps-
7.cd
8.createrepo -g /media/Server/repodata/comps-
9.createrepo -g /media/Cluster/repodata/comps-
10.createrepo -g /media/ClusterStorage/
11.createrepo -g /media/VT/repodata/comps-
12.vim /etc/yum.repos.d/server.repo //Add entries to the file
YUM GROUP RELATED COMMANDS
13.yum clean all
14.yum grouplist all
15.yum groupremove GNOME Desktop Environment
16.yum grouplist all
17.yum groupinstall Virtualization
If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!
No comments:
Post a Comment