cs312-lecture13_slides

cs312-lecture13_slides - CS 312 Linux System Administration...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 312 Linux System Administration XIII: RPM & yum (cont.) Lance Albertson OSU Picture © Greg Keene
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Administriva HW4 posted; due 5/21 by 2PM Read Ch. 9, 10, 11, 14 from Max-RPM book (snapshot) http://www.rpm.org/max-rpm-snapshot Use Ch. 12 & 13 as a reference
Background image of page 2
Today's Objectives Package Architectures Building an RPM Yum package repositories rpm/yum when to use which command
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Terminology Upstream = source of the software in question. ie. maintainer(s) of the software, not the actual RPM package Sometimes, but not often, this is the same person/ group Software Package = Upstream tarball/zip/etc. RPM Package = RPM created using the upstream software package
Background image of page 4
Architectures Main architectures: i386, x86_64 Other: ppc, ppc64, alpha, ia64 i386 packages on an x86_64 system = “multiarch” Packages with no architecture = “noarch”
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Building an RPM 'rpmbuild' is included in 'rpm-build' package Don't build packages as root! Build as a “normal” user in ~/rpmbuild/ 'rpmdev-setuptree' (in 'rpmdevtools' package) can help setup directory structure and ~/.rpmmacros file
Background image of page 6
Source RPMs (SRPMs) You can build from a spec file, or “rebuild” from an existing SRPM So what is in an SRPM?
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
rpmbuild rpmbuild can be used to build source and/or binary RPMs You can also have rpmbuild only go through certain sections of your spec (ie. For testing patches you just need to run the %prep section)
Background image of page 8
What is a yum repository? What data is stored
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

cs312-lecture13_slides - CS 312 Linux System Administration...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online