Yellow Dog Update Manager (YUM)
It’s a repository and stored some rpm
Repository info stored in /etc/yum.repos.d/rhel.debuginfo.repo
Yum configuration file
# less /etc/yum.conf
Install a new package called foo
# yum install foo
To update all packages
# yum update
To update a single package called foo
# yum update foo
To remove a package called foo
# yum remove foo
To list all installed packages
# yum list installed
Display information on a package called foo
# yum info foo
To display list of packages for which updates are available
# yum list updates
or
# yum check-update
To find any packages matching a string in the description, summary, packager and package name fields of an rpm
# yum search foo
Create private repository
createrepo –v /package/directory
repomd.xml – contain timestamp and checksum for other 3files
primary.xml.gz – contains list of rpm and dependency in repo
filelists.xml.gz – contains list of files in rpm
other.xml.gz – additional info
comps.xml – info about package group
Configuring repository
/etc/yum.reps.d
[repo-name]
name=description
baseurl=http://server.com/path
enabled=1
gpgcheck=1
No comments:
Post a Comment