wiki:TBR/Website/APT/Yum_Repository

Version 2 (modified by JoelSherrill, on 05/28/07 at 21:41:16) (diff)

Added yum

APT/Yum Repository

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

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 following is the contents of the file /etc/apt/sources.list.d/rtems.list needed to access the RTEMS Tool APT Repository:

rpm ftp://ftp.rtems.com/pub/rtems/linux/redhat/7.3/i386 apt rtems-4.6 rtems-4.7
rpm-src ftp://ftp.rtems.com/pub/rtems/linux/redhat/7.3/i386 apt rtems-4.6 rtems-4.7
}}}?

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, the following downloads and either installs an initial or updates an existing set of RTEMS 4.6 tools for the sparc-rtems target:

{{{
c=sparc
apt-get install rtems-4.6-automake-rtems
apt-get install rtems-4.6-autoconf-rtems
apt-get install rtems-4.6-${c}-rtems-binutils
apt-get install rtems-4.6-${c}-rtems-gdb
apt-get install rtems-4.6-${c}-rtems-gcc
apt-get install rtems-4.6-${c}-rtems-c++
apt-get install rtems-4.6-${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.