Use the installation CD to create a local yum source to complete the RPM package

Source: Internet
Author: User
Introduction if you are a new Linux User and have just installed a brand new RHEL5u4 system, it feels good to use it for a few days under the default configuration. Now you want to compile a program with gcc, and find that this package is not installed in the default configuration. You find the installation disc, carefully mount it, and find the gcc-4.1.2-46.el5.i386.rpm. Try installing with a rpm-ivhgcc-4.1.2-46.el5.i386.rpm. Lack of glibc-d

Introduction

If you are a beginner in Linux and have just installed a brand new RHEL 5u4 system, it feels good to use it for a few days under the default configuration. Now you want to compile a program with gcc, and find that this package is not installed in the default configuration. You find the installation disc, carefully mount it, and find the gcc-4.1.2-46.el5.i386.rpm. Try installing with rpm-ivh gcc-4.1.2-46.el5.i386.rpm. The system tells us that glibc-devel and libgomp are missing. When you try to install glibc-devel, the system prompts that glibc-headers is missing. Continue and find the lack of kernel-headers. Previous rumors on the Internet about how the RPM dependency is complex have finally been confirmed. You are so worried that it would be nice if you chose to install it completely! At the same time, I also regret that it has brought me so much trouble today to save the worthless several GB of space. Finally, you follow the dependency prompts to recursively complete the gcc installation. You are glad to have completed this task. In fact, this installation task is not complex enough to scare you away.

If you are a loyal Fefora Linux user. One afternoon, you want to install GNOME desktop for a newly installed Fedora12. Dependency is not what you worry about, because you know yum can solve this problem. However, after typing yum install, I found that I don't know which software packages are required to install GNOME desktop system. I have never heard of a GNOME package to install. You tried to query the packages containing GNOME in the repository. There are 258 packages in total. This list is obviously not what you want. After consulting google, I found that yum has a grouplist option, which looks a bit like what I want. Yum grouplist finds the groups named "X Window System" and "GNOME Desktop Environment", which is exactly what you want. However, after you type yum groupinstall "X Window System", the System prompts you to download and install the 299 packages, totaling 60 MB. Looking at the download progress bar, the speed is only 27KB/s, so it takes nearly an hour to complete the 60 M. Next, you need to install a "GNOME Desktop Environment" that is unknown ". This means that the boss may not be able to start until tomorrow, and it is just the start. In case the download and installation are not completed successfully ...... while complaining about why the company's network has not been resized for a long time, you are also upset that the system has not been fully installed.

But is "full installation" really the best way? Is there any better solution to this situation that we have not "completely installed?

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.