APT/Yum Repository

From RTEMSWiki
Jump to: navigation, search

Contents

Many RPM-based 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.

Thanks to Ralf for providing the impetus to support APT/Yum clients and for continuing to build the RPMs on a regular basis.

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, 4.9, 4.10 or 4.11 (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:

apt-get install rtems-4.9-automake-rtems
apt-get install rtems-4.9-autoconf-rtems
apt-get install rtems-4.9-sparc-rtems-binutils
apt-get install rtems-4.9-sparc-rtems-gdb
apt-get install rtems-4.9-sparc-rtems-gcc
apt-get install rtems-4.9-sparc-rtems-c++

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 repository configuration information (e.g. /etc/yum.repos.d/ files) needed access the RTEMS Tool Yum Repository is contained in a package named rtems-BRANCH-yum-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, 4.9, 4.10, 4.11 (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 yum-conf RPM, load it using a command similar to one of the following:

# download the yum-conf RPM and then (probably as root) execute...
rpm -ivh rtems-BRANCH-yum-conf-VERSION-DISTRIBUTION.noarch.rpm

Or to download and install in one step using the full URL of this rpm:

rpm -ivh http://www.rtems.org/.../rtems-BRANCH-yum-conf-VERSION-DISTRIBUTION.noarch.rpm

If rpm complains about dependencies in the above step, run rpm with the --nodeps option:

rpm -ivh --nodeps rtems-BRANCH-yum-conf-VERSION-DISTRIBUTION.noarch.rpm

The public key for the RPMs can be found at http://www.rtems.org/ftp/pub/rtems/linux/gpg-pubkey-69ce4a83-44cc2b30 . Download this and add it to the rpm database with this command:

rpm --import gpg-pubkey-69ce4a83-44cc2b30

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

yum search rtems 

Once YUM 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 example sparc-rtems4.9 target:

yum install rtems-4.9-automake-rtems
yum install rtems-4.9-autoconf-rtems
yum install rtems-4.9-sparc-rtems-binutils
yum install rtems-4.9-sparc-rtems-gdb
yum install rtems-4.9-sparc-rtems-gcc
yum install rtems-4.9-sparc-rtems-c++

In addition to the RPMs listed above, several additional "common" RPMs will be installed to satisfy dependencies.

Another way to accomplish the same task (with less typing) is to use the wildcard "*":

yum install rtems-4.9-auto*
yum install rtems-4.9-sparc-*
Personal tools
Namespaces

Variants
Actions
Navigation
Gedare's Special Help
Toolbox