The rpm Reference Manual

Table of Contents

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 2.4 "Will Decker" on Wed Jun 20 12:31:46 2018 GMT+0.


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

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.


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

2 Systems

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


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

2.1 rpm

Author

Francois-Rene Rideau

License

MIT

Description

functions to use the RedHat Package Management system

Version

0.0.2

Dependencies
Source

rpm.asd (file)

Components

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

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 files   [Contents][Index]

3.1.1 rpm.asd

Location

rpm.asd

Systems

rpm (system)


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

3.1.2 rpm/pkgdcl.lisp

Parent

rpm (system)

Location

pkgdcl.lisp

Packages

rpm


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

3.1.3 rpm/specials.lisp

Dependency

pkgdcl.lisp (file)

Parent

rpm (system)

Location

specials.lisp

Internal Definitions

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

3.1.4 rpm/version.lisp

Dependency

pkgdcl.lisp (file)

Parent

rpm (system)

Location

version.lisp

Exported Definitions
Internal Definitions

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

3.1.5 rpm/upgrade.lisp

Dependency

pkgdcl.lisp (file)

Parent

rpm (system)

Location

upgrade.lisp

Exported Definitions

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

4 Packages

Packages are listed by definition order.


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

4.1 rpm

Source

pkgdcl.lisp (file)

Use List
Exported Definitions
Internal Definitions

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

5 Definitions

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


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

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: hash-rpm-pathnames-by-packagename RPM-LIST
Package

rpm

Source

upgrade.lisp (file)

Function: hash-rpm-versioned-names-by-name RPM-LIST
Package

rpm

Source

upgrade.lisp (file)

Function: parse-rpm-pathname PATHNAME
Package

rpm

Source

version.lisp (file)

Function: parse-rpm-version X
Package

rpm

Source

version.lisp (file)

Function: parse-rpm-versioned-name STRING &key START END
Package

rpm

Source

version.lisp (file)

Function: rpm-pathname-packagename PATHNAME
Package

rpm

Source

version.lisp (file)

Function: rpm-pathname-version PATHNAME
Package

rpm

Source

version.lisp (file)

Function: rpm-version< V1 V2
Package

rpm

Source

version.lisp (file)

Function: rpm-version<= V1 V2
Package

rpm

Source

version.lisp (file)

Function: rpm-version= V1 V2
Package

rpm

Source

version.lisp (file)

Function: rpm-version> V1 V2
Package

rpm

Source

version.lisp (file)

Function: rpm-version>= V1 V2
Package

rpm

Source

version.lisp (file)

Function: rpm-versioned-name-basename STRING
Package

rpm

Source

version.lisp (file)

Function: rpm-versioned-name-version STRING
Package

rpm

Source

version.lisp (file)

Function: rpms-installed &key PACKAGENAMES HOST
Package

rpm

Source

upgrade.lisp (file)

Function: rpms-to-update DESIRED-RPMS &key HOST TEST
Package

rpm

Source

upgrade.lisp (file)


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

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *rpm-architecture*
Package

rpm

Source

specials.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: asdf-to-rpm-architecture X
Package

rpm

Source

specials.lisp (file)

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 (file)

Function: compare-rpm-version-components V1 V2
Package

rpm

Source

version.lisp (file)

Function: compare-rpm-versions V1 V2
Package

rpm

Source

version.lisp (file)

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 (file)

Function: valid-rpm-architecture-component-p STRING &key START END
Package

rpm

Source

version.lisp (file)

Function: valid-rpm-version-component-p STRING &key START END
Package

rpm

Source

version.lisp (file)


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

Appendix A Indexes


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

A.1 Concepts

Jump to:   F   L   R  
Index Entry  Section

F
File, Lisp, rpm.asd: The rpm<dot>asd file
File, Lisp, rpm/pkgdcl.lisp: The rpm/pkgdcl<dot>lisp file
File, Lisp, rpm/specials.lisp: The rpm/specials<dot>lisp file
File, Lisp, rpm/upgrade.lisp: The rpm/upgrade<dot>lisp file
File, Lisp, rpm/version.lisp: The rpm/version<dot>lisp file

L
Lisp File, rpm.asd: The rpm<dot>asd file
Lisp File, rpm/pkgdcl.lisp: The rpm/pkgdcl<dot>lisp file
Lisp File, rpm/specials.lisp: The rpm/specials<dot>lisp file
Lisp File, rpm/upgrade.lisp: The rpm/upgrade<dot>lisp file
Lisp File, rpm/version.lisp: The rpm/version<dot>lisp file

R
rpm.asd: The rpm<dot>asd file
rpm/pkgdcl.lisp: The rpm/pkgdcl<dot>lisp file
rpm/specials.lisp: The rpm/specials<dot>lisp file
rpm/upgrade.lisp: The rpm/upgrade<dot>lisp file
rpm/version.lisp: The rpm/version<dot>lisp file

Jump to:   F   L   R  

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: Internal functions

C
compare-rpm-version-chunks: Internal functions
compare-rpm-version-components: Internal functions
compare-rpm-versions: Internal functions

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

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

P
parse-rpm-pathname: Exported functions
parse-rpm-version: Exported functions
parse-rpm-version-component: Internal functions
parse-rpm-versioned-name: Exported functions

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

V
valid-rpm-architecture-component-p: Internal functions
valid-rpm-version-component-p: Internal 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*: Internal special variables

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

Jump to:   *  
S  

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

A.4 Data types

Jump to:   P   R   S  
Index Entry  Section

P
Package, rpm: The rpm package

R
rpm: The rpm system
rpm: The rpm package

S
System, rpm: The rpm system

Jump to:   P   R   S