How Do I Install Component Packages
Prerequisites
- The SUSE Linux operating system has been installed and configured.
- You have obtained the component packages or the SUSE Linux installation CD-ROM. In the SUSE Linux installation CD-ROM, the component packages are stored in the installation CD-ROM/suse/x86_64 directory.
Context
- Managing RPM packages includes installing and upgrading Redhat Package Manager (RPM) packages. If you install an RPM package, a new piece of software is installed. If you upgrade an RPM package, new features are added to the software.
- An RPM package contains multiple files that can be used to install an application. To enable an application, other files that are not contained in the RPM package or other RPM packages may also be needed.
- Only the root user can install, upgrade, and delete RPM packages, because the RPM packages are usually installed in system-level directories that are writable to the root user only. You can also install an RPM package in a specified directory where you can write data.
- This topic takes the vncmanager component package installation as an example to describe how to install a component package using graphical user interface (GUI) or command line interface (CLI).
In the KVM scenario, you need to install component packages by using the CLI.
Installing Component Packages by Using the CLI
- Log in to the server as the root user.
- Right-click in a blank area on the desktop, and choose Open Terminal from the displayed shortcut menu.
- Run the rpm -ivh vncmanager-1.0.0-2.9.x86_64.rpm command to install the vncmanager component package.
This topic takes the vncmanager component package as an example. In the preceding command, rpm -ivh vncmanager-1.0.0-2.9.x86_64.rpm specifies the RPM package name.
If the following information is displayed, obtain the component packages on which the vncmanager component depends and install them in sequence as prompted.
The component packages can be obtained from the SUSE Linux installation CD-ROM. In the SUSE Linux installation CD-ROM, the component packages are generally stored in the installation CD-ROM/suse/x86_64 directory.
error: Failed dependencies: libboost_iostreams.so.1.54.0()(64bit) is needed by vncmanager-1.0.0-2.9.x86_64 libboost_program_options.so.1.54.0()(64bit) is needed by vncmanager-1.0.0-2.9.x86_64 vncmanager-greeter is needed by vncmanager-1.0.0-2.9.x86_64
- Check the component package installation.
Run the rpm -qa | grep vncmanager command to check the installation of the vncmanager component package.
If the command output contains vncmanager-1.0.0-2.9.x86_64, the vncmanager component package has been installed.
vncmanager-1.0.0-2.9.x86_64
Installing Component Packages by Using the GUI
- Log in to the operating system as the root user.
- Right-click in a blank area on the desktop, and choose Open Terminal from the displayed shortcut menu.
- Run the yast2 command.
The YaST Control Center window is displayed.
- Select Software > Software Management.
- Enter the RPM package to query in the Search text box, for example vncmanager and click Search.
The displayed information indicates that vncmanager has not been installed.
- Right-click vncmanager, and choose Install from the displayed shortcut menu.
- Click Accept.
If the system displays a message prompting you to insert the operating system CD-ROM, insert the CD-ROM, and click Retry.
The system starts to install the vncmanager component package.
- Check the installation of the vncmanager component package.
Enter the RPM package to query in the Search text box, for example vncmanager and click Search. The displayed information indicates that vncmanager has been installed.