The rpm Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The rpm Reference Manual

This is the rpm Reference Manual, version 0.0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Thu Sep 15 06:05:08 2022 GMT+0.

Table of Contents


1 Introduction

RPM

This library allows you to manipulate RPM packages from CL.


==== Exported Functionality ====

The rpm library creates a package RPM,
that exports the following macros and functions:

PARSE-RPM-VERSIONED-NAME STRING &KEY START END
  parses the STRING (within START and END bounds)
  as an rpm versioned package name, returning as multiple values two strings,
  one for the base package name and the other for epoch, version and release.
  e.g. "foo-1.4-6" ==> "foo" "1.4-6"

RPM-VERSIONED-NAME-BASENAME STRING
  from a rpm versioned package name, extract the base package name.
  e.g. "foo-1.4-6" ==> "foo"

RPM-VERSIONED-NAME-VERSION STRING
  from a rpm versioned package name, extract the epoch, version and release.
  e.g. "foo-1.4-6" ==> "1.4-6"

PARSE-RPM-PATHNAME PATHNAME
  from the designator of a pathname to a RPM, extract as multiple values:
  * the pathname of the parent directory
  * the base name of the package
  * the epoch:version-release string
  * the architecture
  e.g. "/tmp/foo-1.4-6.x86_64.rpm" ==> #P"/tmp/" "foo" "1.4-6" "x86_64"

RPM-PATHNAME-PACKAGENAME PATHNAME
  from the designator of a pathname to a RPM,
  extract the base name of the package
  e.g. "/tmp/foo-1.4-6.x86_64.rpm" ==> "foo"

RPM-PATHNAME-VERSION PATHNAME
  from the designator of a pathname to a RPM,
  extract the epoch:version-release string
  e.g. "/tmp/foo-1.4-6.x86_64.rpm" ==> "1.4-6"

RPM-VERSION= V1 V2
RPM-VERSION<= V1 V2
RPM-VERSION< V1 V2
RPM-VERSION>= V1 V2
RPM-VERSION> V1 V2
  compares the two given epoch:version-release strings,
  and returns T if the first is respectively
  equal, lesser or equal, lesser, greater or equal, or greater
  than the second one as far as RPM is concerned.

RPMS-INSTALLED &KEY PACKAGENAMES HOST
  return a list of versioned packagenames for the RPM packages installed
  on specified HOST (default: NIL, denoting current host),
  that match the list of names specified in PACKAGENAMES,
  or all packages if PACKAGENAMES is T (the default).

RPMS-TO-UPDATE DESIRED-RPMS &KEY HOST TEST
  given a list of DESIRED-RPMS of pathnames to RPM packages,
  a host HOST (default NIL, denoting current host),
  a test TEST (default RPM-VERSION<=, allowing newer versions than desired),
  return a list of the RPMs to install so all RPMs of given packagenames
  will be install and of a version satisfying the test with the desired version.
  With the default test RPM-VERSION<= this means that the desired RPM won't be
  listed if an existing more recent version is installed, whereas if you supply
  :TEST RPM-VERSION= then the desired RPM will only be skipped if
  an exact matching version is already installed.


2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 rpm

functions to use the RedHat Package Management system

Author

Francois-Rene Rideau

License

MIT

Version

0.0.2

Dependencies
  • inferior-shell (system).
  • lambda-reader (system).
  • cl-ppcre (system).
  • fare-utils (system)., at least version "1.0.0.5"
Source

rpm.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.1 rpm/rpm.asd

Source

rpm.asd.

Parent Component

rpm (system).

ASDF Systems

rpm.


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.2 rpm/pkgdcl.lisp

Source

rpm.asd.

Parent Component

rpm (system).

Packages

rpm.


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.3 rpm/specials.lisp

Dependency

pkgdcl.lisp (file).

Source

rpm.asd.

Parent Component

rpm (system).

Internals

Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.4 rpm/version.lisp

Dependency

pkgdcl.lisp (file).

Source

rpm.asd.

Parent Component

rpm (system).

Public Interface
Internals

Previous: , Up: Lisp   [Contents][Index]

3.1.5 rpm/upgrade.lisp

Dependency

pkgdcl.lisp (file).

Source

rpm.asd.

Parent Component

rpm (system).

Public Interface

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 rpm

Source

pkgdcl.lisp.

Use List
  • common-lisp.
  • fare-utils.
  • inferior-shell.
  • uiop/driver.
  • λ-reader.
Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Public Interface


5.1.1 Ordinary functions

Function: hash-rpm-pathnames-by-packagename (rpm-list)
Package

rpm.

Source

upgrade.lisp.

Function: hash-rpm-versioned-names-by-name (rpm-list)
Package

rpm.

Source

upgrade.lisp.

Function: parse-rpm-pathname (pathname)
Package

rpm.

Source

version.lisp.

Function: parse-rpm-version (x)
Package

rpm.

Source

version.lisp.

Function: parse-rpm-versioned-name (string &key start end)
Package

rpm.

Source

version.lisp.

Function: rpm-pathname-packagename (pathname)
Package

rpm.

Source

version.lisp.

Function: rpm-pathname-version (pathname)
Package

rpm.

Source

version.lisp.

Function: rpm-version< (v1 v2)
Package

rpm.

Source

version.lisp.

Function: rpm-version<= (v1 v2)
Package

rpm.

Source

version.lisp.

Function: rpm-version= (v1 v2)
Package

rpm.

Source

version.lisp.

Function: rpm-version> (v1 v2)
Package

rpm.

Source

version.lisp.

Function: rpm-version>= (v1 v2)
Package

rpm.

Source

version.lisp.

Function: rpm-versioned-name-basename (string)
Package

rpm.

Source

version.lisp.

Function: rpm-versioned-name-version (string)
Package

rpm.

Source

version.lisp.

Function: rpms-installed (&key packagenames host)
Package

rpm.

Source

upgrade.lisp.

Function: rpms-to-update (desired-rpms &key host test)
Package

rpm.

Source

upgrade.lisp.


5.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.1 Special variables

Special Variable: *rpm-architecture*
Package

rpm.

Source

specials.lisp.


Previous: , Up: Internals   [Contents][Index]

5.2.2 Ordinary functions

Function: asdf-to-rpm-architecture (x)
Package

rpm.

Source

specials.lisp.

Function: compare-rpm-version-chunks (ch1 ch2)

Given the first chunks of two respective version numbers, return the symbol < = > depending on which of predicates hold, or nil is none does

Package

rpm.

Source

version.lisp.

Function: compare-rpm-version-components (v1 v2)
Package

rpm.

Source

version.lisp.

Function: compare-rpm-versions (v1 v2)
Package

rpm.

Source

version.lisp.

Function: parse-rpm-version-component (v)

Given a version or release component of a RPM, parse it into a list of numbers and letters, e.g. "0.99p7" => (0 99 "p" 7)

Package

rpm.

Source

version.lisp.

Function: valid-rpm-architecture-component-p (string &key start end)
Package

rpm.

Source

version.lisp.

Function: valid-rpm-version-component-p (string &key start end)
Package

rpm.

Source

version.lisp.


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts


Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   A   C   F   H   P   R   V  
Index Entry  Section

A
asdf-to-rpm-architecture: Private ordinary functions

C
compare-rpm-version-chunks: Private ordinary functions
compare-rpm-version-components: Private ordinary functions
compare-rpm-versions: Private ordinary functions

F
Function, asdf-to-rpm-architecture: Private ordinary functions
Function, compare-rpm-version-chunks: Private ordinary functions
Function, compare-rpm-version-components: Private ordinary functions
Function, compare-rpm-versions: Private ordinary functions
Function, hash-rpm-pathnames-by-packagename: Public ordinary functions
Function, hash-rpm-versioned-names-by-name: Public ordinary functions
Function, parse-rpm-pathname: Public ordinary functions
Function, parse-rpm-version: Public ordinary functions
Function, parse-rpm-version-component: Private ordinary functions
Function, parse-rpm-versioned-name: Public ordinary functions
Function, rpm-pathname-packagename: Public ordinary functions
Function, rpm-pathname-version: Public ordinary functions
Function, rpm-version<: Public ordinary functions
Function, rpm-version<=: Public ordinary functions
Function, rpm-version=: Public ordinary functions
Function, rpm-version>: Public ordinary functions
Function, rpm-version>=: Public ordinary functions
Function, rpm-versioned-name-basename: Public ordinary functions
Function, rpm-versioned-name-version: Public ordinary functions
Function, rpms-installed: Public ordinary functions
Function, rpms-to-update: Public ordinary functions
Function, valid-rpm-architecture-component-p: Private ordinary functions
Function, valid-rpm-version-component-p: Private ordinary functions

H
hash-rpm-pathnames-by-packagename: Public ordinary functions
hash-rpm-versioned-names-by-name: Public ordinary functions

P
parse-rpm-pathname: Public ordinary functions
parse-rpm-version: Public ordinary functions
parse-rpm-version-component: Private ordinary functions
parse-rpm-versioned-name: Public ordinary functions

R
rpm-pathname-packagename: Public ordinary functions
rpm-pathname-version: Public ordinary functions
rpm-version<: Public ordinary functions
rpm-version<=: Public ordinary functions
rpm-version=: Public ordinary functions
rpm-version>: Public ordinary functions
rpm-version>=: Public ordinary functions
rpm-versioned-name-basename: Public ordinary functions
rpm-versioned-name-version: Public ordinary functions
rpms-installed: Public ordinary functions
rpms-to-update: Public ordinary functions

V
valid-rpm-architecture-component-p: Private ordinary functions
valid-rpm-version-component-p: Private ordinary functions

Jump to:   A   C   F   H   P   R   V  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*rpm-architecture*: Private special variables

S
Special Variable, *rpm-architecture*: Private special variables

Jump to:   *  
S