Installing Software with YaST


You got a taste of how YaST installs software during the initial system installation. You chose from among four standard installation types: Minimum (command-line only, no X), Minimum Graphical (with X, but no desktop environment), Standard with GNOME, or Standard with KDE. YaST then assembled the packages included in your selection and installed them.

Sooner or later, you will need an application not included in that standard system installation. Unless that application is brand new, chances are you'll find it on the SUSE Linux CDs. This means you're just a few minutes away from having it installed on your system.

Follow these steps to install any new software package(s) from the SUSE Linux installation disks.

After inserting the first SUSE Linux installation CD, start YaST. Enter your SuperUser password and YaST will open to the Software page. Click Software Management. After reading the current package setup, YaST displays the Search page (see Figure 21.1).

Figure 21.1. Search for a specific package or type of package in this YaST screen.


This is a standard search page, and it is excellent for finding specific applications, either by name or function. You can use Search if, for example, you want to see what Perl modules you have installed and what others are included in the distribution. Enter perl- into the Search box (the hyphen is there because all Perl module packages use the syntax perl-<module name>).

Sometimes you might want to explore the CDs for interesting applications or to look for a particular type of program. The Package Groups filter lets you do that. Use the drop-down Filter menu to display the Package Groups (see Figure 21.2).

Figure 21.2. Use the Package Groups filter to browse through a list of similar or complementary applications.


With Package Groups, everything is organized in a tree by type of application. Click a branch to see all the relevant packages. Some branches are further subdivided for a narrower selection, but the Multimedia branch displays everything in CD, Sound, Video, and Other.

Whatever filter you choose, YaST will show all the matching packages in the upper-right pane, with pertinent details. Click any individual package for a more detailed description of that package in the lower-right pane. Installed packages will be checked. To install any others, check the box. You can also right-click any package and choose from the following menu options:

  • Install Selecting this option will install the package.

  • Do Not Install Selecting this option specifies that the package should not be installed.

  • Keep Selecting this option specifies that a previously installed package should remain installed and not be modified.

  • Delete Selecting this option uninstalls the package.

  • Update if Newer Version Available Selecting this option specifies that an already installed package be updated only if a newer version exists in the installation source.

  • Update Unconditionally Selecting this option specifies that the already installed package be updated with the version residing in the installation source, regardless of its version.

  • Taboo Never Install Selecting this option specifies that the package is to never be installed.

  • Protected Do Not Modify Selecting this option specifies that the package is already installed and should not be modified.

You can also configure special installation options without right-clicking the package using the check box. Clicking the check box next to an installed package once displays the Update icon, which is really a reinstall. Double-clicking the check box marks the package for removal. Some installed packages appear in red type; this means that the version you have installed now is newer than the package on the CD. Choosing Update on these packages will revert the current version to the version on the CD.

When you have finished choosing packages, click Accept to complete the installation. Occasionally, you'll see one of two additional screens. One screen tells you that some other packages will be installed in addition to your selected packages to satisfy some dependencies (see more about dependencies in the next section "The Basics of the Red Hat Package Management System [RPM]"). The other screen indicates that one or more of your selections will conflict with an existing package and offers suggestions about how to deal with the conflict.

YaST then installs the selected packages (see Figure 21.3), processes any other requests made in this session, and runs SUSEConfig to make sure everything's in order. When completed, YaST asks whether you want to install any other packages. Click Install More to do so or click Finish to close the Install module.

Figure 21.3. YaST Installs the selected packages.


You can also use YaST to install a package from the command line. To do this, you must first know the name of the package you want to install. When you do, enter the following:

yast -i package_name

For example, if you wanted to install the dosbox package, you would enter the following:

yast -i dosbox

Just as when using the Software Management module, installing a package from the command line performs a dependency check and automatically installs any dependent packages required.

After installing any new package, you should always run YOU to check for updated versions of the software. This protects your system against any bug or security problem that may have been discovered and fixed since the last SUSE Linux release; it often gives you new features, as well.

You'll learn more about YOU later in this chapter.

In the preceding example, you used YaST to install additional packages from the SUSE installation CDs. However, you can use YaST to specify other locations from which packages should be installed. You can select an FTP or HTTP server on the Internet, a server on your local network, or a directory on your local hard drive (assuming the packages have been copied there).

Having an alternative installation source can be a lifesaver when you need to install a new package, but have misplaced or damaged your SUSE Linux CDs. Installing from the Internet also ensures that the packages you are installing are the most current available.

Let's take a look at how to add a SUSE mirror site on the Internet as an additional installation source. Complete the following:

1.

Open a web browser and navigate to http://www.novell.com/products/linuxprofessional/downloads/ftp/int_mirrors.html. This website provides a listing of mirror sites you can use as installation sources.

2.

Note the URL of the mirror sites closest to you.

3.

Start YaST and provide your root password.

4.

In YaST, select Software. You will see a module in the right pane called Installation Source, as shown in Figure 21.4.

Figure 21.4. The YaST Installation Source module.


5.

Select Installation Source. The screen in Figure 21.5 is displayed.

Figure 21.5. Setting the installation source.


Notice in Figure 21.5 that your CD or DVD drive is already configured as your installation source by default.

6.

Select Add, FTP or HTTP, depending on the protocol used by the mirror site you've selected. The screen in Figure 21.6 is displayed.

Figure 21.6. Configuring an FTP mirror as an installation source.


7.

Under Protocol, mark the correct protocol for the mirror site you are going to use.

8.

In the Server Name field, enter the DNS name or IP address of the mirror server you've selected. For example, if you were going to use the mirror at Oregon State University, you would enter ftp.oregonstate.edu in this field. Be sure you don't enter ftp:// or http://.

9.

In the Directory on Server field, enter the path to the root of the distribution you want to use, without leading or trailing forward slashes.

10.

This part is a little tricky. The issue here is that every mirror site uses a slightly different directory structure. You will need to open a browser window, navigate to the mirror site, and then burrow down through the links until you arrive at the root. For example, on the Oregon State mirror, you would need to delve through to /pub/suse/suse/i386/10.0/ to arrive at the root of the SUSE Linux 10.0 distribution on the site. Then, in the Directory on Server field, you would enter pub/suse/suse/i386/10.0.

11.

Select OK. You should see the mirror site added as an additional installation source.

12.

Ensure the Status of the mirror site is set to On.

13.

YaST checks installation sources in the order they appear in this screen. If you want YaST to use the mirror site before your local CD or DVD drive, select your mirror site and select Up until it appears first in the list.

14.

Select Finish.

Note

If you enter the wrong path, you'll see an error message that states something to the effect of ERROR(InstSrc:E_no_instsrc_on_media). if you see this message, one of two things has happened. Usually, this error occurs when you use a leading or a training forward slash in the directory path. It can also occur if you use the wrong path. Remember that the path must point to the root of the distribution on the mirror site, not to the directory where the package files reside.


At this point, you can test your new installation source by opening the Software Management module in YaST. When you do, you'll see that the module retrieves its package information from the remote mirror site instead of from your local CD or DVD drive.

With this in mind, we need to relate a little background about applications and packages.



SUSE Linux 10 Unleashed
SUSE Linux 10.0 Unleashed
ISBN: 0672327260
EAN: 2147483647
Year: 2003
Pages: 332

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net