12.3. Installing a New Package

Before you can install a new program using this module, you first have to locate a package file for it that is in the correct format. For RPM-based distributions like Red Hat, the best places to look are the distribution CDs or the rpmfind.net website. If you are using Debian Linux, it is best to try installing from the APT repository as it contains almost all available packages. Either way, the steps for installing a package are similar:

1.
On the main page of the module, scroll down to the Install a New Package form, which will be used to select the package and start the install process.

If the package file is on the system running Webmin, select the From local file option and enter the full path to the package file. If your system uses RPM packages, you can enter a directory containing multiple .rpm files or a wildcard like /tmp/*.rpm as well. This can be used to install several packages at once.

If the package is on the computer your browser is running on, select the From uploaded file option and click on the Browse button to select the package file. If you are running your browser at the console of your Webmin system, there is no difference between this option and the previous one.

If the package is on a website somewhere, select the From ftp or http URL option and enter or paste the URL into the text field next to it. Webmin will do the download for you before starting to install. If your system uses RPM packages and you have the rpmfind command installed, the Search rpmfind.net button next to the URL field can be clicked to pop up a window for searching the RPM database at rpmfind.net/.

If running Debian Linux, you can select the Package from APT option and enter the package name into the text field next to it. Click the Search APT button to find the package name if you don't know exactly what it is called.

If running Red Hat Linux, the Package from Red Hat Network option can be used to install one of the packages that you have available for downloading. The Search RHN button can be used to display all those that are available.

If you are running Gentoo Linux, the From Portage repository option and Search buttons can be used to install from the repository. In fact, very few Gentoo packages can be found outside the repository.

2.
Once the package source has been entered, click the Install button.

If you chose to install from a repository (such as APT, Red Hat Network, or Portage), the download and installation process will start immediately. Webmin will display output from the install command, and if successful, a list of packages that were installed. No other steps are necessary to complete the install process.

If any other install source was chosen, the package will be downloaded if necessary and the installation options form displayed.

3.
The installation options available differ depending on your package system, but the defaults will work fine for upgrading or installing a package with no dependency problems. RPM-based systems have several options, the most useful of which are:

Ignore dependencies? If a package is failing to install due to dependency errors that you know are incorrect, set this option to Yes. It can also be useful if you are going to install packages to solve the dependency problems later.

Replace new version with old? If you want to downgrade a package to an older version, this option must be set to Yes.

Overwrite files? If a package cannot be installed due to conflicts with files from another package, enable this option.

4.
When you are done selecting install options, click the Install button. If everything goes well, a page showing the details of the new package and all the files that it contains will be displayed. However, if the install fails, an error message explaining why will be displayed. In that case, you can use the browser's back button to return to the install options form and try again with different choices.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.46.18