5.18.4.3.1. Using RPM

The smart application performs runtime package management of RPM packages. You must perform an initial setup for smart on the target machine if the PACKAGE_FEED_ARCHS, PACKAGE_FEED_BASE_PATHS, and PACKAGE_FEED_URIS variables have not been set or the target image was built before the variables were set.

As an example, assume the target is able to use the following package databases: all, i586, and qemux86 from a server named my.server. You must inform smart of the availability of these databases by issuing the following commands on the target:

     # smart channel --add i585 type=rpm-md baseurl=http://my.server/rpm/i586
     # smart channel --add qemux86 type=rpm-md baseurl=http://my.server/rpm/qemux86
     # smart channel --add all type=rpm-md baseurl=http://my.server/rpm/all
                        

From the target machine, fetch the repository:

     # smart update
                        

After everything is set up, smart is able to find, install, and upgrade packages from the specified repository.