Packages

A package corresponds to an RPM in the Pulp server, regardless of whether it was synchronized from a repository feed or manually uploaded by a user.


Installation

Remote package installation on a consumer is covered in the Consumers section of the User Guide.


Removal

Remote package removal on a consumer is covered in the Consumers section of the User Guide.


List by Repository

The contents of a repository, which includes all packages, errata, and files, can be displayed through the repo content command. This command only required the ID of the repository in question:

$ pulp-admin repo content --id repo1
+------------------------------------------+
              Contents of repo1
+------------------------------------------+

Packages in repo1: 

package1.noarch.rpm
package2.x86_64.rpm
package3.noarch.rpm

Errata in repo1: 

 none

Files in repo1: 

 none

Search

The pulp-admin script provides a way of querying packages served by the Pulp server. The simplest form of the command displays all packages in the Pulp server:

$ pulp-admin package search
+------------------------------------------+
             Package Information
+------------------------------------------+
Name          	EVRA                      	Filename                                	Repositories   
pulp-client   	0:0.0.117-1.fc14.noarch   	pulp-client-0.0.117-1.fc14.noarch.rpm   	pulp-f14-64
grinder       	0:0.0.67-1.fc14.noarch    	grinder-0.0.67-1.fc14.noarch.rpm        	pulp-f14-64
gofer-lib     	0:0.10-1.fc14.noarch      	gofer-lib-0.10-1.fc14.noarch.rpm        	pulp-f14-64
pulp-common   	0:0.0.117-1.fc14.noarch   	pulp-common-0.0.117-1.fc14.noarch.rpm   	pulp-f14-64
pulp-cds      	0:0.0.117-1.fc14.noarch   	pulp-cds-0.0.117-1.fc14.noarch.rpm      	pulp-f14-64
gofer         	0:0.10-1.fc14.noarch      	gofer-0.10-1.fc14.noarch.rpm            	pulp-f14-64
pulp          	0:0.0.117-1.fc14.noarch   	pulp-0.0.117-1.fc14.noarch.rpm          	pulp-f14-64

In most cases, the number of packages present in a Pulp server will make that form of the command ineffective. In most cases, one or more search arguments will be specified to refine the results. The following search parameters are supported for package queries. In all instances, except repoid, a regular expression is supplied as the value to the argument. When one or more repoids are passed, search is confined to only those repositories.

Name Flag
Architecture -a or --arch
Epoch -e or --epoch
Filename -f or --filename
Name -n or --name
Release -r or --release
Version -v or --version
Repoids -p or --repoid

These search arguments can be combined for advanced queries:

Example: All i386 Pulp packages

$ pulp-admin package search --name 'pulp.*' --arch 'noarch'

Example: All i386 Pulp packages in pulp-test or pulp-dev repositories

$ pulp-admin package search --name 'pulp.*' --arch 'noarch' --repoid 'pulp-test' --repoid 'pulp-dev'

Example: All packages from the x86_64 version of build 0.0.117

$ pulp-admin package search --arch 'x86_64' --version '117$'

Example: Find which repo a particular RPM is in

$ pulp-admin package search --filename zbar-qt-devel-0.10-6.fc14.i686.rpm

Dependency List

Lookup dependencies on a rpm package. The following arguments are required:

Name Flag Description
PKG-NAME -n or --name package to lookup dependencies; to specify multiple packages use multiple -n.
ID -r or --repoid Identifies the repository in which the dependency lookup happens; to specify multiple packages use multiple -r

Example: Lookup dependency list on a package

$ sudo pulp-admin package deplist -n emoticons -r testrepo -r f13-updates
+------------------------------------------+
   Dependencies for package(s) [emoticons]
+------------------------------------------+

 dependency: libstdc++.so.6()(64bit) 
   provider: libstdc++.x86_64 4.4.5-2.fc13

 dependency: libc.so.6()(64bit) 
   provider: glibc.x86_64 2.12.1-4

 dependency: rtld(GNU_HASH) 
   provider: glibc.x86_64 2.12.1-4
   provider: glibc.i686 2.12.1-4

 dependency: libm.so.6()(64bit) 
   provider: glibc.x86_64 2.12.1-4

 dependency: libstdc++.so.6(GLIBCXX_3.4)(64bit) 
   provider: libstdc++.x86_64 4.4.5-2.fc13

 dependency: libc.so.6(GLIBC_2.2.5)(64bit) 
   provider: glibc.x86_64 2.12.1-4

 dependency: libgcc_s.so.1()(64bit) 
   provider: libgcc.x86_64 4.4.5-2.fc13

+------------------------------------------+
 Suggested Packages in Repo [['testrepo', 'f13-updates']]
+------------------------------------------+
libstdc++-4.4.5-2.fc13.x86_64.rpm
glibc-2.12.1-4.x86_64.rpm
libgcc-4.4.5-2.fc13.x86_64.rpm