APT/Yum Repository

From RTEMSWiki

Jump to: navigation, search

Many GNU/Linux distributions support either APT or Yum as the package manager. RTEMS provides repositories compatible with both package managers.

With both of these, it is important to know how RTEMS tool targets are named. See SupportedCPUs for a table showing which target architectures are supported by the release branch you are interested in as well as target naming conventions.

RTEMS currently does not distribute Debian format packages. There is nothing wrong with Debian, there are just so many hours in the day. If this interests you, sponsor Debian tool packaging support and/or volunteer to help.

Apt Instructions

APT is the Advanced Packaging Tool developed by the Debian Project and extended by Connectiva to support RPMs. This tool can be used to ease downloading and updating the RTEMS Toolset RPMs.

The repository configuration information (e.g. /etc/apt/sources.list.d/ files) needed access the RTEMS Tool APT Repository is contained in a package named rtems-BRANCH-apt-conf-VERSION-DISTRIBUTION.noarch.rpm. Beginning at http://www.rtems.org/ftp/pub/rtems/linux/, you will have to navigate through directories to select

  • RTEMS Branch - 4.6, 4.7, 4.8 or 4.9 (CVS head)
  • GNU/Linux Distribution - fedora, suse, redhat, etc
  • GNU/Linux Distribution Version
  • Host CPU Architecture - i386 or x86_64

When you find the appropriate apt-conf RPM, load it using a command similar to one of the following:

# download the apt-conf RPM and then execute...
rpm -ivh rtems-BRANCH-apt-conf-VERSION-DISTRIBUTION.noarch.rpm

Or to download and install in one step:

rpm -ivh URL_ending_in_rtems-BRANCH-apt-conf-VERSION-DISTRIBUTION.noarch.rpm


After adding the RTEMS APT Repository to the set available, execute the following command to fetch the list of tools available:

apt-get -d update

The above command should be executed periodically to learn of updates that are available.

Once APT has learned of new packages, it is easy to install and update the tools. The following downloads and either installs an initial or updates an existing set of RTEMS 4.9 tools for the sparc-rtems4.9 target:

c=sparc
apt-get install rtems-4.9-automake-rtems
apt-get install rtems-4.9-autoconf-rtems
apt-get install rtems-4.9-${c}-rtems-binutils
apt-get install rtems-4.9-${c}-rtems-gdb
apt-get install rtems-4.9-${c}-rtems-gcc
apt-get install rtems-4.9-${c}-rtems-c++
apt-get install rtems-4.9-${c}-rtems-gnat

Thanks to Ralf for providing the impetus to support APT clients.

Yum Instructions

Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. This tool can be used to ease downloading and updating the RTEMS Toolset RPMs.

The following is the contents of the file /etc/yum/yum.rtems.com needed to access the RTEMS Tool Yum Repository with yum-2.0.4 on Fedora:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
 
[rtems-4.6]
name=RTEMS-4.6 - $basearch
baseurl=ftp://ftp.rtems.com/pub/rtems/linux/redhat/7.3/$basearch/yum/rtems-4.6
gpgcheck=1

The following Yum command sequence downloads and either installs an initial or updates an existing set of RTEMS 4.6 tools for the sparc-rtems target:

c=sparc
yum -c /etc/yum.rtems.com install rtems-4.6-automake-rtems
yum -c /etc/yum.rtems.com install rtems-4.6-autoconf-rtems
yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-binutils
yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-gdb
yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-gcc
yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-c++

Thanks to Ralf for providing the impetus to support Yum clients.

Personal tools