The Linux Foundation


From The Linux Foundation

Revision as of 21:17, 19 July 2007 by Mats (Talk | contribs)


LSB Software Repositories

Beginning with LSB 3.1 Update 1, 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 tar files.

APT Repositories

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

  deb lsb main

and install the Distribution testkit by running the following as root:

  apt-get install lsb-task-dist-testkit

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:

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:

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):

  wget -O /etc/yum.repos.d/LSB-$ARCH.conf $TOP/lsb-$ARCH.repo

Once the repository files are set up properly, you can install the Distribution Testkit by running the following as root:

  yum -y install lsb-task-dist-testkit

up2date using yum repositories

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

   yum lsb

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<tt> or <tt>yast2 -i packagename Of course this works with SLES10 SP1, too.

rpm signing keys

note that in order to deal with the enforcing GPG checks with yum, you should either import the appropriate LSB Project GPG key; otherwise you need to set gpgcheck to 0.

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