It is possible to install STLinux directly from the RPMs, but care must be taken because of the strict dependencies that occur between different packages. Using the rpm command ensures that the packages are installed in the correct order to preserve the dependencies, although this may require multiple RPM files to be specified on a single rpm command line.
Note: RPM is a file containing a package, and rpm is the name of the utility that is used to install an RPM.
Before starting the installation, STMicroelectronics recommend that you delete any earlier release and install the new release on a clean system.
Note: Before deleting the previous installation, remember to backup all the files that you want to keep.
Use the following commands to delete the old RPMs, ready for the new installation.
host# rpm --erase $(rpm -qa | grep "^stlinux23-") host# rpm --erase --noscripts $(rpm -qa | grep "^stlinux23-") host# rm -rf /opt/STM/STLinux-2.3
By default, rpm checks the architecture of the RPM and will only install the package on a host with matching architecture. RPMs for the target are marked as being for either the ST40 or ST200/ST231 architectures, but must be installed on an x86 host. This means that the rpm architecture check must be suppressed by adding the --ignorearch flag to the command line.
The new packages can now safely be installed with rpm, taking care of the interdependencies. Install all downloaded RPMs, except the Busybox links (the recommended option), with the following command:
host# rpm -Uhv --ignorearch $(/bin/ls *.rpm | sed -e /busybox-links/d)