Installing New Software

OpenLinux includes all the software you need to get started using your Linux system for Internet access, text editing, and so forth. You may quickly find, however, that you want to install other Linux applications that you have obtained, or that are included on the OpenLinux CD-ROMs but that were not installed by default. This chapter describes how Linux software is usually packaged and how to work with those packages.

Understanding rpm Software Packages

The concept of a software package makes it simple to manage your OpenLinux system. Every software component that is installed on your system is part of a package. OpenLinux includes package management tools to quickly and easily install new software from the Caldera CD-ROM.

NOTE: Some software packages do not use the rpm software package format. For those applications, refer to the application's documentation to learn about how to install it.

Software packages on the Caldera CD-ROM are stored in a format called rpm. Each rpm file (having a file extension .rpm) contains the files that comprise the software, plus additional information about where to install each file, how much disk space the software requires, and how to run any initialization files that the software provides.

When you install any rpm software package, the database of software on your system is updated. You can query this database to learn about files on your system, or see which software packages are available for use.

NOTE: You must be logged in as root to manage software packages.

The package management system allows you to:

Reviewing Software Packages on Your Linux System

The easiest way to work with software packages is to use the KPackage utility from the KDE Desktop. To start this utility, choose COAS|kpackage from the main menu of KDE. Kpackage will prompt you for the root password, using the standard COAS dialog box. The software package database of your system is read and the main window of kpackage appears, as shown in See The kpackage utility provides a graphical interface to manage the software on your Linux system..

 

  1. The kpackage utility provides a graphical interface to manage the software on your Linux system.

Packages installed on your system are divided into categories. When you open a category by clicking on the plus sign, you see the packages included in that category. Click on any of the packages and the right side of the window displays information about that package (See Information about any installed software package can be viewed in kpackage.).

 

  1. Information about any installed software package can be viewed in kpackage.

The right side of the kpackage window includes two tabs:

NOTE: If you click on any file in the file list, KDE attempts to open that file in a text editor or other viewing program. This is most useful for quickly reviewing README or other information files included with a software package.

Uninstalling Packages

While you are viewing information about any package, you can choose the Uninstall button below the tab sections to remove that software package from your computer.

When you choose Uninstall, all files associated with a software package are removed, and changes to configuration files are reversed.

NOTE: If you uninstall a software package, the files are no longer included on your system. You must use your OpenLinux CDROM (or other product files that you might have uninstalled) in order to re-install the software package.

Searching for Packages and Files

The kpackage utility enables you to search for a package on your system by name, to see if it's installed or not.

To search for a package on your OpenLinux system:

Log in as root.
Start the kpackage utility.
Choose File|Find Package.

A search dialog box appears.

Enter the name of the package that you want to search for on your system.

You can use just part of the name if the substring checkbox is selected in the search dialog box. If you do this, you can choose Find repeatedly to find the next package whose name includes your search term.

Choose Find.

The package list on the left side of the kpackage window moves to show you the package name you entered (See Searching for packages helps you locate details about software installed on your OpenLinux system.).

 

  1. Searching for packages helps you locate details about software installed on your OpenLinux system.

In addition to packages, you can search for files within packages. This is very helpful when you see a file on your OpenLinux system, but you don't know what its purpose is. Use the kpackage utility to search for the file, so you can learn what package the file is part of.

CAUTION: Don't delete an individual file in OpenLinux unless you are familiar with the purpose of that file. Instead, search for the file using kpackage and uninstall the complete software package if you don't need it any longer.

To search for a file to determine which package it belongs to:

From the KDE main menu, select COAS|kpackage.
If prompted, enter the root password.
Choose File|Find File.

A search dialog box appears.

Enter the name of the file that you want to search for.

You must enter the complete path of the file. For example, if you see a file on your system named /etc/inittab and you want to know which package it belongs to, you must enter the full path, /etc/inittab , in the Find File dialog box.

You cannot use wildcards such as ? or * in the filename.

Choose Find.

The bottom part of the Find File dialog box shows the name of the package that installed the filename you entered.

To see the package listed, you must locate and select it in the package list. You can't open it directly from the Find File window. (Use the Find Package option to locate it if necessary.)

Installing New Software

You can also use kpackage to install additional software packages. Packages must be in the rpm format. You can find hundreds of software packages in rpm format on the OpenLinux CD-ROM, or by searching Internet sites for Linux software.

NOTE: The rpm packages on the OpenLinux CD-ROM are located on the path: col/install/RPMS

To install a new software package:

From the KDE main menu, select COAS|kpackage.
If prompted, enter the root password.
Choose File|Open.

An Open dialog box appears.

Use the Open dialog box to browse your filesystem until you locate the rpm file that you want to install on your system.

If you want to install a software package from the OpenLinux CD-ROM, be certain the CD-ROM drive is mounted with the correct CD-ROM in place before you start the kpackage utility. (Insert the CD-ROM and, as root user, and either type mount /mnt/cdrom from a Terminal window or use /auto/cdrom to access the CD-ROM.)

Select the rpm file that you want to install and choose OK.

An installation window appears, where you can select options to help you install the new software package (See You can install new software packages with kpackage.).

 

  1. You can install new software packages with kpackage.

The options in the Installation dialog box allow you to update a currently installed package to a new version, or test the installation without writing the files.

Choose Install to install the rpm package that you selected.

Using the Command Line Tools

In addition to the kpackage utility, you can use the rpm command to work with the software packages on your system. The rpm command provides much additional functionality, but can be a challenge to use because it has so many options.

The basic options of the rpm command are shown in the following list.

rpm -q packagename
  • To list all of the software packages installed on your system, using a paging tool to move up and down within the list:
rpm -qa | less
  • To un-install a package on your system (requires only the name of the package, not the version and platform information):
rpm -e packagename
  • To install a new software package, updating it if necessary from a prior installed version, and showing hash marks as the installation progresses (requires the full name of the package as it appears using the ls command):
rpm -Uvh packagename

To learn more about the rpm command and its many options, review the rpm manual page (enter man rpm ).