Intractable Diseases (7)--Linux (Red Hat 6) Operating System Yum Installation Source Solution

  1. Problem description: When Redhat6 is just installed, the yum command cannot be used. For example, if you want to use the yum command to install the Firefox browser, the problems that will occur are shown in the following figure:
    1


  1. Solution
    ① Use vi to edit the /etc/yum.repos.d/rhel-source.repo file (just use the tab key to complete the file name);
    2
    ② Enter a colon in the "bottom line mode": -dot.-comma, -dollar Symbol $-letter d (or directly delete the selected content);
    3
    ③ The cursor selects enabled=0, press the r key, and then replace 0 with 1 (this operation is to replace the content);
    4
    5
    ④ Move the cursor to ftp and enter D , Delete the content of the line after f (you can delete the content directly);
    6
    7
    ⑤ Press a first, and then complete ile:///media/Server at the deletion place;
    8
    ⑥ Copy the content: /etc/pki/rpm-gpg/RPM GPG KEY redhat release;
    9
    ⑦ Press esc to exit insert mode, press shift key + colon:, enter wq to save and exit the file;
    10
    ⑧ Import key (content just copied): rpm --import /etc/pki/rpm-gpg/RPM GPG KEY redhat release, press Enter;
    11
    ⑨ verify whether the yum command can be used;
    12
    ⑩ successfully install the firefox browser.
    13


  1. The above is the solution to the yum source problem in Redhat 6.10 under VM16 Pro. Friends can also refer to other people's solutions and choose the appropriate solution according to the system they have installed. Friends can also configure the same experimental environment as mine. For details, please see: Software Installation (1) – Detailed tutorial on installing Linux (Red Hat 6) operating system on VM16Pro under win10 . Hope to help you!

Guess you like

Origin blog.csdn.net/qq_39032096/article/details/113376737