[Linux] how to install and upgrade Mandrake 9.0

Source: Internet
Author: User

The following describes how to install and upgrade the Mandrake software and the basic usage of some gadgets, such as urpmi and urpmi. addmedia. As long as the first ISO file can grow up through the network, you can also add or delete software at will. For example, you can use rpmdrake to add or upgrade the installation, rpmdrake-remove indicates deletion.

1. When your computer itself has an iso file for Mandrake, you can easily implement it. First, mount your iso file to a directory, such as my:

  
Source code:

--------------------------------------------------------------------------------

Mount-t iso9660-o loop/mnt/win_c2/Mandrake90iso_image/Mandrake90-cd1-inst.i586.iso/mnt/iso1
Mount-t iso9660-o loop/mnt/win_c2/Mandrake90iso_image/Mandrake90-cd2-ext.i586.iso/mnt/iso2
Mount-t iso9660-o loop/mnt/win_c2/Mandrake90iso_image/Mandrake90-cd3-i18n.i586.iso/mnt/iso3

--------------------------------------------------------------------------------

Of course, I can easily go to the/mnt/isoX directory and select my desired software for installation. However, when you encounter some rpm dependencies, you may feel this installation method is troublesome. Haha, please refer to the following.
Source code:

--------------------------------------------------------------------------------
Urpmi. addmedia cd1 file: // mnt/iso1/Mandrake/RPMS
Urpmi. addmedia cd2 file: // mnt/iso2/Mandrake/RPMS2
Urpmi. addmedia cd3 file: // mnt/iso3/Mandrake/RPMS3

--------------------------------------------------------------------------------

Then you can see the/var/lib/urpmi directory. You can see three files on the front,
List. cd1
List. cd2
List. cd3
This is the integrated hdlist file created on the media. At the same time, it will update/etc/urpmi. cfg. You can check the content to know what it is.

Next, you can use rpmdrake and rpmdrake-remove to add or delete software. Of course, you can also use urpmi to add some parameters for operations. For details, refer to the man page.

2. Install and upgrade software on the network.

If you only have a small system, but you can access the Internet, you can upgrade and maintain your system through the network. First, you need to know some websites that provide network installation and software upgrade. I often go to 202.38.75.11, where updates are also very timely. Of course, you can choose a site that is fast.
Source code:

--------------------------------------------------------------------------------
# Rpm-rf/var/lib/urpmi /*
# Echo rxvt>/etc/urpmi/skip. list
# Urpmi. addmedia ftp1 ftp: // 202.38.75.11/FreeOS/Mandrake90/Mandrake/RPMS \ with ../base/hdlist1.cz
# Urpmi. addmedia ftp2 ftp: // 202.38.75.11/FreeOS/Mandrake90/Mandrake/RPMS2 \ with ../base/hdlist2.cz
# Urpmi. addmedia ftp3 ftp: // 202.38.75.11/FreeOS/Mandrake90/Mandrake/RPMS3 \ with ../base/hdlist3.cz
# Urpmi. addmedia updates ftp: // 202.38.75.11/FreeOS/Mandrake90/updates/RPMS \ with ../base/hdlist. cz

Ftp1 ~ Ftp3 corresponds to three installation disks, and updates corresponds to security updates.

-------------------------------------------------------------------------------

  
Of course, you can also use the -- distrib parameter. This is the information for adding several installation disks at a time. hdlist is automatically searched. This is more convenient.

Source code :-

-------------------------------------------------------------------------------
Urpmi. addmedia -- distrib ftp: // 202.38.75.11/FreeOS/Mandrake90/
-------------------------------------------------------------------------------

  
Note: The Path used for automatic search is different from the preceding one. The/var/lib/urpmi directory and the/etc/urpmi. cfg file are all updated.

In this way, you can use rpmdrake and rpmdrake-remove to add or delete software, and use updates to upgrade the software. For more information, see the man page.

Of course, you can go to the homepage of MandrakeSoft to check whether updates are required. You can also use MandrakeUpdate to automatically update images on overseas sites. However, this method may be slow.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.