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:
Solution ① Use vi to edit the /etc/yum.repos.d/rhel-source.repo file (just use the tab key to complete the file name);
② Enter a colon in the "bottom line mode": -dot.-comma, -dollar Symbol $-letter d (or directly delete the selected content);
③ The cursor selects enabled=0, press the r key, and then replace 0 with 1 (this operation is to replace the content);
④ Move the cursor to ftp and enter D , Delete the content of the line after f (you can delete the content directly);
⑤ Press a first, and then complete ile:///media/Server at the deletion place;
⑥ Copy the content: /etc/pki/rpm-gpg/RPM GPG KEY redhat release;
⑦ Press esc to exit insert mode, press shift key + colon:, enter wq to save and exit the file;