twitter linkedin youtube
  • About
  • Blog
  • My Services
  • Twitter
  • LinkedIn
  • Email
All tags

    Building an rpm which contains a single file

    When I looked through the rpm build doco on the web, it seemed that all the instructions largely focussed on compiling binaries prior to packaging in an RPM. What if all you want to do is package a single file (eg an initialisation script) into an RPM for distribution with…

    Read More
    • linux
    • rpm
    • yum
    • rpmbuild

    Modify an srpm

    To unpack the contents of an SRPM, make changes, then re-package it, follow the below steps 1) Install rpmbuild yum install rpmbuild 2) Install the srpm rpm -ivh http://server/package-1.0.1.src.rpm * This will install * source into ~/rpmbuild/SOURCE/package-1.0.1.tar.gz * Spec file into…

    Read More
    • linux
    • rpm
    • rpmbuild

    yum - once off enable or disable repos

    If you need to, as a once-off, disable specific repos (e.g. if the version of a packages you need are in a lower-priority repo), or if you need to enable a specific repo (which is disabled by default), you cna use the below. yum install --disablerepo="base,epel,…

    Read More
    • rpm
    • yum

    Pulp rpm repo - symlinked files

    It appears that when using pulp (http://www.pulpproject.org/) to synchronise and manage yum repositories, pulp categorises a repository with the following in mind * OS Major Release Number (E.g. CentOS 7) * OS Minor Release number (e.g. CentOS 7.2) * These are stored under the release number, e.…

    Read More
    • linux
    • rpm
    • pulp

    rpm quick reference - useful stuff

    Useful rpm commands rpm -qa | grep [string] Will show if the RPM you specify (in the string) is installed rpm -qf [/path/somefile] will show which package provides the specified file rpm -ql [packagename] will show all files contained in the installed package specified rpm -qlp [package.rpm] will list…

    Read More
    • linux
    • rpm

    Load more posts
    Subscribe!
    All content copyright © 2025 • All rights reserved.
    Proudly published with Ghost