RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples RPM and Yum How to manage your packages without UPS Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read Nick Urbanik This document Licensed under GPL—see section 8 License Of This Document slide 1/48 Outline What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures slide 2/48 RPM and Yum Nick Urbanik What is RPM? RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document What is RPM? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document RPM stands for The RPM Package Manager. It used to stand for Red Hat Package Manager It is used to manage packages. “Oh, I see.” . . . no I don’t. . . slide 3/48 What is RPM? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document RPM stands for The RPM Package Manager. It used to stand for Red Hat Package Manager It is used to manage packages. “Oh, I see.” . . . no I don’t. . . slide 3/48 What is RPM? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document RPM stands for The RPM Package Manager. It used to stand for Red Hat Package Manager It is used to manage packages. “Oh, I see.” . . . no I don’t. . . slide 3/48 What is RPM? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document RPM stands for The RPM Package Manager. It used to stand for Red Hat Package Manager It is used to manage packages. “Oh, I see.” . . . no I don’t. . . slide 3/48 What is RPM? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document RPM stands for The RPM Package Manager. It used to stand for Red Hat Package Manager It is used to manage packages. “Oh, I see.” . . . no I don’t. . . slide 3/48 Outline RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 4/48 What is an RPM Package? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages It’s a piece of software, all put in one RPM file For example, I am using the. . . let’s see. . . $ rpm -q evince ← evince-0.5.1-3 . . . software package to display these notes. The name of the package is evince. The version of the package is 0.5.1 The release is 3. RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 5/48 An RPM Package usually contains files RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands My evince package has files inside: $ rpm -ql evince ← /etc/gconf/schemas/evince-thumbnailer.schemas /etc/gconf/schemas/evince.schemas /usr/bin/evince ... /usr/share/omf/evince/evince-sr.omf /usr/share/omf/evince/evince-uk.omf RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 6/48 Outline RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 7/48 Why should I have packages? Why not just zip files or something? RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands RPM Command Examples We could just have zip files, or tar balls, or something like that, with just the files inside? It could work. So why have RPM packages? Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 8/48 Outline RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Advantages of RPM packages RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 9/48 Advantages of RPM packages RPM and Yum Nick Urbanik What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages You can install a new package easily with one operation You can uninstall a package just as easily the package can contain information about what else it needs to work properly RPM won’t clobber configuration files, and does sensible things with them The RPM system includes a database with lots of information about how the files should be installed, their size, owner, type,. . . RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 10/48 RPM Commands RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update There are seven main RPM operations: For installing software packages: update, install, freshen Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document For making queries for erasing packages for verifying that a software package is correctly installed for checking signatures — verifying that an RPM package file is really from the people you trust, and not from Joe Trojan Cracker slide 11/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 12/48 Queries RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures You saw above that I can list the files with $ rpm -ql evince ← I can also see information about the package with $ rpm -qi evince ← Try it now! RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 13/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 14/48 Install RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures This will install a software package, regardless of whether there is a previous version installed This is always the right thing to do for kernels. RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 15/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 16/48 Update RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Install a package if it is not installed, or install a newer version if there is a newer version available. . . . . . otherwise, do nothing. Let’s use this command to install the wonderful Planet Penguin Racer game: $ cd ∼/mnt ← $ ls -l ← $ sudo rpm -Uhv $(ls|grep -v kernel) ← Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 17/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 18/48 Freshen RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Install a new version of a package only if an older one is already installed, otherwise do nothing. Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 19/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 20/48 Erasing RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Remove a package: $ sudo rpm -e ppracer ← Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 21/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 22/48 Verfying Checking the files in a package all match the original data If it doesn’t match, then flags show this: flag S M 5 D L U G T C what it means file Size differs Mode differs (includes permissions and file type) MD5 sum differs Device major/minor number mismatch symbolic Link points to wrong place User ownership differs Group ownership differs mTime differs selinux security Context differs RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document $ $ rpm -V setup ← S.5....T. c /etc/aliases S.5....TC c /etc/bashrc ........C c /etc/exports S.5....T. c /etc/printcap S.5....TC c /etc/profile S.?....T. c /etc/securetty slide 23/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 24/48 Checking Digital Signatures RPM and Yum Nick Urbanik What is RPM? RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures First, you need to import the public keys that are provided by Fedora: $ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* ← $ rpm -K package-file.rpm ← RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 25/48 RPM Command Examples command rpm -qa | less rpm -q httpd rpm -qa | grep httpd rpm -ql httpd rpm -qd httpd rpm -qc httpd rpm -qi httpd rpm -V httpd rpm -qf /etc/passwd effect list all installed software packages show the version of the httpd package, if it is installed show all installed packages that have httpd in their name list all files in the httpd package list all documentation files in the httpd package list all configuration files in the httpd package display information about the package verify that the httpd package is correctly installed determine which package the /etc/passwd f ile belongs to RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 26/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document A quick comparison with dpkg Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 27/48 A quick comparison with dpkg command dpkg -list | less dpkg -l httpd effect list all installed software packages show the version of the httpd package, if it is installed show all installed packages that have httpd in their name list all files in the httpd package display information about the package determine which package the /etc/passwd file belongs to RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document dpkg -list | grep httpd dpkg -listfiles httpd dpkg -print-avail httpd dpkg -S /etc/passwd slide 28/48 Yum RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Yum is a high level wrapper for RPM Uses the information in the RPM packages to figure out what things to install downloads the files you need, and installs them, lovingly taking care of which packages depend on what. Updates The “repos”: repositories Some Things to Read License Of This Document slide 29/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates The “repos”: repositories Some Things to Read License Of This Document slide 30/48 Why not stick with RPM? RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? RPM is good, but it’s too low level to easily manage all the packages on the system Yum uses the information in the RPM database, and the RPM files themselves to make sure that each software package has everything it needs. Updates The “repos”: repositories Some Things to Read License Of This Document slide 31/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates The “repos”: repositories Some Things to Read License Of This Document slide 32/48 What’s all this primative text stuff? RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? There are many GUI programs that use yum as their backend I have never used any of them, so your exercise is to Google for them! Updates The “repos”: repositories Some Things to Read License Of This Document slide 33/48 Updates RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Software has bugs Fedora particularly has many new versions of software that are being made available, since it aims to provide the current version of most pieces of software. Fedora has more updates than any other stable distribution I know of. Only a few are for security reasons, most are for updates. Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 34/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 35/48 Why update? Why not update? Why update? The easiest systems to crack have no updates. RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates Why not update? Updating can break a working system But that doesn’t stop me from keeping my systems updated! . . . but not good if your business loses thousands of dollars per second of downtime. In such cases, you have a test system where you test the updates first, check they don’t stop your applications from working Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 36/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 37/48 How to update RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates Why update? Why not update? How to update Setting http_proxy Do this once only: Ensure your own account is in the sudoers file see the sudo handout set your http_proxy environment variable See the next section: 39 on page 44 The “repos”: repositories Some Things to Read Do this for each update: then do: $ sudo yum -y update ← and watch it go. License Of This Document slide 38/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 39/48 Setting http_proxy If access to web servers on the Internet is blocked by a firewall, and a proxy server is required, such as here in the TAFE: You need to set the http_proxy environment variable. The proxy server here has the DNS name “gw”, and listens on port 5865 . . . . . . so set the http_proxy like this: export http_proxy=http://gw:5865/ The best thing to do is to edit your login script ∼/.bash_profile and add it at the end: emacs ∼/.bash_profile & Then log out and log in. . . You should be able to see the value now: $ echo $http_proxy ← http://gw:5865/ RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Some Things to Read License Of This Document slide 40/48 The “repos”: repositories RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! In the /etc/yum.repos.d directory are some files that end with “.repo” You can change these, add other repos (such as dag, freshrpms, atrpms, livna) You can also change the baseurl to a local Australian mirror (see http: //fedora.redhat.com/Download/mirrors.html for a list of Australian mirrors) Updates The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document slide 41/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Updates The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document slide 42/48 Adding extras RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Well, the fedora extras repository is already enabled, so nothing to do here. Adding extras Digital signatures Some Things to Read License Of This Document slide 43/48 Outline RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document Yum — Sounds delicious! Updates The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document slide 44/48 RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples If you add the dag, freshrpms, atrpms or livna repositories, you should import their public keys, and enable checking the GPG signatures of the packages. Yum — Sounds delicious! Updates The “repos”: repositories For example, here is my Adding extras Digital signatures /etc/yum.repos.d/dag.repos file: [dag] Some Things to Read name=Dag RPM Repository for Fedora Core License Of This baseurl=http://apt.sw.be/fedora/$releasever/en/$basearc Document enabled=1 gpgcheck=1 slide 45/48 Resources Dr. Peter Salus. The Daemon, the GNU & the Penguin. Grocklaw 2006. http://www.groklaw.net/staticpages/index. php?page=20051013231901859. Eric Foster-Johnson. RPM Guide. http://fedora.redhat.com/docs/drafts/ rpm-guide-en/ The RPM Package Manager. http://rpm.org/ Wikipedia entry. Yellow dog Updater, Modified. http://en.wikipedia.org/wiki/Yellow_dog_ Updater,_Modified RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 46/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 Topics Covered What is RPM? What is a Package? Why should I have packages? Why not just zip files or something? Advantages of RPM packages RPM Commands Queries Install Update Freshen Erasing Verfying Checking Digital Signatures RPM Command Examples A quick comparison with dpkg Yum — Sounds delicious! Why not stick with RPM? What’s all this primative text stuff? Updates Why update? Why not update? How to update Setting http_proxy The “repos”: repositories Adding extras Digital signatures Some Things to Read License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Updates The “repos”: repositories Some Things to Read License Of This Document slide 47/48 License Of This Document RPM and Yum Nick Urbanik What is RPM? RPM Commands RPM Command Examples Yum — Sounds delicious! Copyright © 2006 Nick Urbanik You can redistribute modified or unmodified copies of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundation—either version 2 of the License or (at your option) any later version. Updates The “repos”: repositories Some Things to Read License Of This Document slide 48/48