• Complain

Parker Steve. - How to Create an RPM: A practical guide to creating a Linux RPM

Here you can read online Parker Steve. - How to Create an RPM: A practical guide to creating a Linux RPM full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    How to Create an RPM: A practical guide to creating a Linux RPM
  • Author:
  • Genre:
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

How to Create an RPM: A practical guide to creating a Linux RPM: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "How to Create an RPM: A practical guide to creating a Linux RPM" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

CreateSpace Independent Publishing Platform, 2016. 78 p. ISBN-10: 1517188466. ISBN-13: 978-1517188467English | Feb 24, 2016 | ISBN: 1517188466 | 78 Pages | AZW3/MOBI/EPUB/PDF (conv) | 4 MBEvery day, all around the world, somebody says, it would be great to make an RPM to install this software, but then find that they dont have anybody who has made one before, and dont really know how to work out how to make one, or how much effort would be involved in going about that task. This is a fairly short and easy-to-follow guide aimed at helping people to create RPMs quickly and easily in real-world situations. All of the files needed to work through the book can be downloaded for free, and you can also download a ready-built Virtualbox virtual machine, configured with the necessary software and files, to accompany the book. This all comes together to make it easy to create professionally-presented RPM packages with confidence. The author is an independent IT consultant with almost two decades experience with Linux and RPM

Parker Steve.: author's other books


Who wrote How to Create an RPM: A practical guide to creating a Linux RPM? Find out the surname, the name of the author of the book and a list of all author's works by series.

How to Create an RPM: A practical guide to creating a Linux RPM — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "How to Create an RPM: A practical guide to creating a Linux RPM" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

2016 Steve Parker BSc RHCE Copyright 2016 by Steve Parker All Rights - photo 1

2016 Steve Parker, BSc, RHCE

Copyright 2016 by Steve Parker. All Rights Reserved. No part of thispublication or the information in it may be quoted from or reproducedin any form by means such as printing, scanning, photocopying orotherwise without prior written permission of the copyright holder.

Linux is the registeredtrademark of Linus Torvalds in the U.S. and other countries.

Red Hat is the registeredtrademark of Red Hat Inc. in the U.S. and other countries.

The RPM Logo on the front cover byCarolingio93 is licensed under the Creative CommonsAttribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic,2.0 Generic and 1.0 Generic license.

All trademarks are acknowledged asbelonging to their respective owners.

Dedicated to my wife, Jackie.

Tableof Contents

Formatting Conventions Used in this Book

The formatting conventions in this book are fairlystandard; the main text is in a serif font, like the text you arecurrently reading. System files and commands (such as rpmbuild , /etc/hosts ,and so on) are shown in monospaced font.

Output from interactive sessions is show on alight gray background; commands that you type are in bold text ,for example, here you would type cd and mkdir rpmbuild :


[rpm@packaging ~]$ cd
[rpm@packaging ~]$ mkdir rpmbuild

Callout boxes areshown on a lighter background, with a border, and highlightparticular noteworthy items, including a reminder of where you candownload sample files from:

If a line of input istoo long to show on the width of the page of a printed - photo 2

If a line of input istoo long to show on the width of the page of a printed book ,then a backslash ( \ )character is shown to indicate that the command continues onto thenext line (which will be indented). You can either type it inliterally as shown, as multiple lines, like this:


cp my-first-rpm-1.0-1.spec \
~/rpmbuild/SPECS

Or you can remove the backslash( \ ) and the line-break, and enter it all one one line, likethis:


cp my-first-rpm-1.0-1.spec ~/rpmbuild/SPECS/

Youwill probably find the second option easier. Any shell you are usingwill accept either format.

Attimes, it can be more clear to display the prompt as a single $ symbol, rather than its more usual, but longer format (like [rpm@packagingtake3]$ ), so instead of this:


[rpm@packaging take3]$ mkdir \
~/rpmbuild/BUILD/my-first-rpm-2.0
[rpm@packaging take3]$ cp \
COPYING ~/rpmbuild/BUILD/my-first-rpm-2.0/
[rpm@packaging take3]$ cp \
LICENSE ~/rpmbuild/BUILD//my-first-rpm-2.0/

We will sometimes show thecommands like this, where that makes it easier to read:


$ pwd
/home/rpm/files/chapter3/take3
$ mkdir ~/rpmbuild/BUILD/my-first-rpm-2.0
$ cp COPYING ~/rpmbuild/BUILD/my-first-rpm-2.0/
$ cp LICENSE ~/rpmbuild/BUILD//my-first-rpm-2.0/

Notice that here the additional pwd command confirms that the current location is /home/rpm/files/chapter3/take3 ,since that was no longer clear from the prompt itself.

Introduction

Thecreation of RPM packages is often seen as a bit of a dark art by manyin the IT industry, particularly those whose main experience andexpertise is somewhere other than the (sometimes quite niche) Linuxdevelopment community. This book is for these people, amongst others:

    Developers needing to package up their codeto for distribution

    Systems Administrators needing to installand manage software over an estate of servers

    DevOps needing to create or modify RPMs fora particular project or environment

    Students wanting to learn about and/orexperiment with the mechanisms of RPM

    Anybody else who is interested inunderstanding RPMs.

There is some excellent (and free) RPM referencedocumentation online (see the Bibliography), but apparently none thatare particularly accessible to the outsider, or even to the insiderwho just wants to accomplish what should be (and actually is) apretty simple task, without learning any arcane specifics of thedetails of how RPM is implemented.

This book is written for anybody who just wants tobe able to create an RPM package; if you just want to pick up enoughknowledge to get a few files into an RPM, nobody is going to preachat you that you are not exploiting the full, exquisitely jeweledpotential of a finely-honed RPM package. If you do want to learn howto do more with RPM than just install a few files, we'll cover that,too, and go on to cover all of the bits that you may need to knowabout, so you can dip in and out of whichever chapters youparticularly need at any moment. It may well turn out that as youstart to create more and more powerful and flexible RPM packages,that you find yourself wanting to use more and more of its features.

WhyRPM?

There are many benefits of RPM over,say, distributing a tar ball(.tar compressed archive); this book is more focussed on thepracticality of how to create RPMs than on evangelism of anyparticular technology, but in one word, the key benefit of RPM ismetadata.

Metadata

The Oxford Dictionary defines Metadata as A setof data that describes and gives information about other data..This is what makes an RPM so much more useful than a tarballor simply copying an executable onto a system. The RPM database keepstrack of what packages are installed, what files and features theyprovide, as well as other information, such as who created them, howthey are licensed, and many other details.

To compare the tarballwith the RPM file, they both contain the required data - theinstalled files - but the RPM also includes lots of extra metadata.Whilst this puts an additional burden on the creator of the RPM, thebenefits are huge, and the up-front cost is relatively low. Once youstart updating your RPM, the benefits increase significantly, and thecost becomes vanishingly small.

By providing a small amount of metadata about thesoftware package, and about the files it contains, you can do farmore with your systems than if you slap software onto them in a morehaphazard way. Just the fact that upgrading the package takes care ofremoving obsolete files as well as deploying new ones, is a massivewin.

Special handling of configuration files within theRPM is another benefit - because RPM knows which files aredocumentation, which are executables, which are configuration files,it can give them special treatment and deal more intelligently withthem.

RPM can also perform custom tasks duringinstallation, removal, upgrades and even downgrades of packages,through the embedding of custom scripts within the package itself.

YUM

Yum (and its newer workalike, DNF) is a tool whichworks with repositories of RPMs so as to be able to calculateall of the dependencies between RPMs, and install or upgrade all ofthose along with the RPM that the user requested to be installed. Thefollowing chapter shows the installation of the rpm-buildpackage itself, including automatically downloading the dependenciesfor rpm-build, if you want to see arun-through of how this works.

Installing RPMs by hand is quite possible withoutthe intervention of Yum, but you can quite easily find yourself inRPM Hell - you've found the RPM that you need to install, butit requires some other library, so you have to find and download theRPM for the correct version of that library. Once you've done that,you realise that this second RPM has dependencies of its own, so youhave to find and download them, and so on down the rabbit hole. Yumuses this rich metadata to check and ensure that it can get hold ofall the necessary RPMs to install the package that you need.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «How to Create an RPM: A practical guide to creating a Linux RPM»

Look at similar books to How to Create an RPM: A practical guide to creating a Linux RPM. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «How to Create an RPM: A practical guide to creating a Linux RPM»

Discussion, reviews of the book How to Create an RPM: A practical guide to creating a Linux RPM and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.