The Linux Foundation

 
RepositoryInfo

From The Linux Foundation

(Difference between revisions)
(freestandards -> linuxfoundation)
(+ urpmi instructions)
Line 46: Line 46:
 
   wget -O /etc/yum.repos.d/LSB-$VER-$ARCH.repo $TOP/lsb-$VER-$ARCH.repo
 
   wget -O /etc/yum.repos.d/LSB-$VER-$ARCH.repo $TOP/lsb-$VER-$ARCH.repo
  
The LSB project provides "task" packages to help easily install groups of packages, referred to as "kits", these are empty packages which depend on all of the necessary componment packages. The following four lines show installing using the task packages (of course they could be combined into a single like to install all three kits at once). As root:
+
The LSB project provides "task" packages to help easily install groups of packages, referred to as "kits", these are empty packages which depend on all of the necessary component packages. The following four lines show installing using the task packages (of course they could be combined into a single like to install all three kits at once). As root:
  
 
   yum install lsb-task-dist-testkit
 
   yum install lsb-task-dist-testkit
Line 77: Line 77:
 
add the YUM reposotory with YaST2 and install packages with the
 
add the YUM reposotory with YaST2 and install packages with the
 
YaST2 software manager.
 
YaST2 software manager.
On commandline, this would be <tt>yast -i packagename<tt> or
+
On commandline, this would be <tt>yast -i packagename</tt> or
 
<tt>yast2 -i packagename</tt>
 
<tt>yast2 -i packagename</tt>
 
Of course this works with SLES10 SP1, too.
 
Of course this works with SLES10 SP1, too.
 +
 +
== urpmi repositories ==
 +
 +
In systems that use urpmi the LSB repositories can be added by the following command:
 +
 +
  urpmi.addmedia lsb http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/lsb-(version)/repo-(ARCH)/
 +
 +
(where ARCH is set to one of: ia32, ia64, ppc32, ppc64, s390x, or x86_64):
 +
 +
The LSB project provides "task" packages to help easily install groups of packages, referred to as "kits", these are empty packages which depend on all of the necessary component packages. The following four lines show installing using the task packages (of course they could be combined into a single like to install all three kits at once). As root:
 +
 +
  urpmi lsb-task-dist-testkit
 +
  urpmi lsb-task-app-testkit
 +
  urpmi lsb-task-sdk
 +
  urpmi lsb-task-appbat
 +
 +
Note that in the case of the distribution tests/teskit, another approach is to install only lsb-dist-checker; when executed it will install necessary packages itself.
  
 
== rpm signing keys ==
 
== rpm signing keys ==

Revision as of 06:48, 20 August 2012

Contents

LSB Software Repositories

All LSB software from The Linux Foundation, including the LSB Distribution Testkit, LSB Application Testkit and LSB Software Development Kit, are available in apt and yum repositories in addition to the bundled tar files.

LSB Versions

All repositories are organized by the version of the LSB they support. So, for example, the "lsb-3.2" yum and apt repositories contain tests and tools that are appropriate for LSB 3.2. We currently deliver repositories for every released version of the LSB starting with 3.0.

Some of our software works on multiple versions of the LSB, such as the SDK, the App Checker and DTK Manager, and some of the tests. For this software, the exact same software is delivered in each versioned repository.

APT Repositories

To access the APT repositories, add the following to /etc/apt/sources.list:

  deb http://ftp.linuxfoundation.org/pub/lsb/repositories/debian lsb-(version) main

The following three lines show installing the three kits (of course, they could be combined into a single line to install all of them at once). Run as root:

  apt-get install lsb-task-dist-testkit
  apt-get install lsb-task-app-testkit
  apt-get install lsb-task-sdk

Of course other tools such as aptitude or synaptic can be used. Note that for the time being on Ubuntu the "Add/Remove" menu item references an installer that only allows Ubuntu-provided repositories; however the "Synaptic Package Manager" menu item will allow installing the LSB packages.

apt signing key

For secure apt (which is used for nearly all current Debian-based systems), you will need to add the LSB repository key to the apt keyring. The key is available at:

  http://ftp.linuxfoundation.org/pub/lsb/keys-for-rpm/lsb-repo-2CF4470F.txt

You can add this key by running apt-key add lsb-repo-2CF4470F.txt as root after downloading the file (e.g., with wget).

yum repositories

For older versions of yum you need to add a repository section to /etc/yum.conf; for yum 2.1 and later the preferred method is to describe each repository by a single file in /etc/yum.repos.d.

The stanzas to add to access the yum repositories are at:

  http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/lsb-(version)

With yum 2.1 or newer, you can set up the yum repository file properly by running the following as root (where ARCH is set to one of: ia32, ia64, ppc32, ppc64, s390x, or x86_64):

  ARCH="(your architecture)"
  VER="(the LSB version you're interested in)"
  TOP="http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/lsb-$VER"
  wget -O /etc/yum.repos.d/LSB-$VER-$ARCH.repo $TOP/lsb-$VER-$ARCH.repo

The LSB project provides "task" packages to help easily install groups of packages, referred to as "kits", these are empty packages which depend on all of the necessary component packages. The following four lines show installing using the task packages (of course they could be combined into a single like to install all three kits at once). As root:

  yum install lsb-task-dist-testkit
  yum install lsb-task-app-testkit
  yum install lsb-task-sdk
  yum install lsb-task-appbat

It is possible to achieve the same effect using the more conventional package groups:

  yum groupinstall "LSB Application Checkers"
  yum groupinstall "LSB Distribution Tests"
  yum groupinstall "LSB Software Development Kit"
  yum groupinstall "LSB Application Battery"

Note that in the case of the distribution tests/teskit, another approach is to install only lsb-dist-checker; when executed it will install necessary packages itself.

up2date using yum repositories

/etc/sysconfig/rhn/sources entries for up2date (RHEL and other distributions):

   yum lsb http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/lsb-(version)

adding yum repository with yast

SLES10 SP1 has the same YaST2/zypper stack as openSUSE 10.2 has, including a lot of bug fixes. So with SLES10 SP1 you have zypper, too.

Before SLES10 SP1 there was no zypper command. Instead you can add the YUM reposotory with YaST2 and install packages with the YaST2 software manager. On commandline, this would be yast -i packagename or yast2 -i packagename Of course this works with SLES10 SP1, too.

urpmi repositories

In systems that use urpmi the LSB repositories can be added by the following command:

  urpmi.addmedia lsb http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/lsb-(version)/repo-(ARCH)/

(where ARCH is set to one of: ia32, ia64, ppc32, ppc64, s390x, or x86_64):

The LSB project provides "task" packages to help easily install groups of packages, referred to as "kits", these are empty packages which depend on all of the necessary component packages. The following four lines show installing using the task packages (of course they could be combined into a single like to install all three kits at once). As root:

  urpmi lsb-task-dist-testkit
  urpmi lsb-task-app-testkit
  urpmi lsb-task-sdk
  urpmi lsb-task-appbat

Note that in the case of the distribution tests/teskit, another approach is to install only lsb-dist-checker; when executed it will install necessary packages itself.

rpm signing keys

In order to deal with the enforcing GPG checks in yum, you should either import the appropriate LSB Project GPG key, or set gpgcheck to 0. For the rpm packages, there are several signing keys. Keys are here:

 http://ftp.linuxfoundation.org/pub/lsb/keys-for-rpm

The import process is similar to apt's (example):

wget http://ftp.linuxfoundation.org/pub/lsb/keys-for-rpm/lsb-4.0-release-key.asc
rpm --import lsb-4.0-release-key.asc

[Article] [Discussion] [View source] [History]