- Timestamp:
-
05/16/08 15:18:09 (16 years ago)
- Author:
-
JoelSherrill
- Comment:
-
/* Yum Instructions */ Rewrite
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
58 | 58 | 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. |
59 | 59 | |
60 | | 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: |
| 60 | The repository configuration information (e.g. ''/etc/apt/sources.list.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 |
| 61 | |
| 62 | * RTEMS Branch - 4.6, 4.7, 4.8 or 4.9 (CVS head) |
| 63 | * GNU/Linux Distribution - fedora, suse, redhat, etc |
| 64 | * GNU/Linux Distribution Version |
| 65 | * Host CPU Architecture - i386 or x86_64 |
| 66 | |
| 67 | When you find the appropriate apt-conf RPM, load it using a command similar to one of the following: |
61 | 68 | |
62 | 69 | {{{ |
63 | | [main] |
64 | | cachedir=/var/cache/yum |
65 | | debuglevel=2 |
66 | | logfile=/var/log/yum.log |
67 | | pkgpolicy=newest |
68 | | distroverpkg=fedora-release |
69 | | tolerant=1 |
70 | | exactarch=1 |
71 | | |
72 | | [rtems-4.6] |
73 | | name=RTEMS-4.6 - $basearch |
74 | | baseurl=ftp://ftp.rtems.com/pub/rtems/linux/redhat/7.3/$basearch/yum/rtems-4.6 |
75 | | gpgcheck=1 |
| 70 | # download the apt-conf RPM and then execute... |
| 71 | rpm -ivh rtems-BRANCH-apt-conf-VERSION-DISTRIBUTION.noarch.rpm |
76 | 72 | }}} |
77 | 73 | |
78 | | 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: |
| 74 | Or to download and install in one step: |
79 | 75 | |
80 | 76 | {{{ |
81 | | c=sparc |
82 | | yum -c /etc/yum.rtems.com install rtems-4.6-automake-rtems |
83 | | yum -c /etc/yum.rtems.com install rtems-4.6-autoconf-rtems |
84 | | yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-binutils |
85 | | yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-gdb |
86 | | yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-gcc |
87 | | yum -c /etc/yum.rtems.com install rtems-4.6-${c}-rtems-c++ |
| 77 | rpm -ivh URL_ending_in_rtems-BRANCH-yum-conf-VERSION-DISTRIBUTION.noarch.rpm |
88 | 78 | }}} |
89 | 79 | |
90 | | Thanks to Ralf for providing the impetus to support Yum clients. |
| 80 | |
| 81 | After adding the RTEMS APT Repository to the set available, execute the following command to fetch the list of tools available: |
| 82 | |
| 83 | {{{ |
| 84 | yum search rtems |
| 85 | }}} |
| 86 | |
| 87 | 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: |
| 88 | |
| 89 | {{{ |
| 90 | yum install rtems-4.9-automake-rtems |
| 91 | yum install /etc/yum.rtems.com install rtems-4.0-autoconf-rtems |
| 92 | yum install rtems-4.9-sparc-rtems-binutils |
| 93 | yum install rtems-4.9-sparc-rtems-gdb |
| 94 | yum install rtems-4.9-sparc-rtems-gcc |
| 95 | yum install rtems-4.9-sparc-rtems-c++ |
| 96 | }}} |