Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

YUM ----> About Yum [Yellow dog Update, Modified] ---------------------------------------.

Front-end to rpm - Designed to resolve package dependencies - Can locate packages accross multiple repositories . Replacement for up2date . The system is based on repositories that hold RPMs and a repodata filelist . The yum application can call upon several repositories for dependency resolution, fetch the RPMs, and install the needed packages

--> Creating a Private Repository ( Server-Side ) --------------------------------------------repomd.xml ---------. Contains timestamps and checksum values for the other three files ( primary.xml.gz, filelists.xml.gz, other.xml.gz ) primary.xml.gz -------------. Contains the list of all the RPMs in the repository, as well as dependency information. filelists.xml.gz ---------------. Contains the list of all the files in all the RPMs.

other.xml.gz -----------. Contains additional information, including the changelog for the RPMs comps.xml --------. This optional file contains information about package groups. Steps (preparing server): -----------------------# copy packages into /var/ftp/pub # rpm -ivh createrepo-.....rpm # createrepo -v /var/ftp/pub/Server Client-Side ) -----------e.g. # vi /etc/yum.repos.d/server.repo [GLS]

name=Private classroom repository baseurl=http://server1.example.com/pub/Server enabled=1 gpgcheck=0 --> Using yum ---------. Install/Remove/Update # yum install package_name # yum remove package_name # yum update package_name --> Searching Packages/Files -----------------------# yum search searchterm e.g. # yum search *yp* # yum list all| available | extras | installed | recent | updates e.g. # yum list httpd* # yum info package_name e.g. # yum info httpd # yum whatprovides filename e.g. # yum whatprovides /usr/sbin/sendmail

You might also like