Linux Software Installation

Source: Internet
Author: User

1. There are several ways to install GCC:

A, with the RPM binary package installation, this method is very cumbersome not recommended, because he has a lot of dependent files need to install, if not finished installing the dependency package, will cause GCC to not work properly. This in my Baidu cloud disk storage Gcc.rar decompression after the order to install in accordance with. Maybe not all, you need to go online to find.

Here is a description of the command below:

RPM-IVH glibc-headers-2.5-58.i386.rpm--force--nodeps

-IVH: Installation shows installation progress--install--verbose--hash

-UVH: Upgrade package--update;

-QPL: Lists the file information in the RPM package [Query packages list];

-QPI: Lists the description information for RPM packages [Query Package Install pack (s)];

-QF: Find which rpm package the specified file belongs to [Query file];

-va: Check all RPM packages to find the missing files [View Lost];

-E: Remove Package

-I,--install install package (s)

-V,--verbose provide more detailed output

-H,--hash print hash marks as package installs (good with-v)

-E,--erase Erase (Uninstall) package

-U,--upgrade=<packagefile>+ upgrade package (s)

--replacepkge Install packages Regardless of whether they have been installed

--test installation test, not actually installed

--nodeps ignoring dependencies of packages forcibly installed

--force ignoring package and file conflicts

Query options (With-q or--query):

-A,--all query/verify all packages

-P,--package query/verify a package file

-L,--list list files in package

-D,--docfiles list all documentation files

-F,--file query/verify package (s) owning file

Rpm-q Samba//query program is installed

Yum List all |grep gcc* view gcc-related installations

Rpm-q Samba//query program is installed

RPM-IVH/MEDIA/CDROM/REDHAT/RPMS/SAMBA-3.0.10-1.4E.I386.RPM//install by Path and show progress

RPM-IVH--relocate/=/opt/gaim gaim-1.3.0-1.fc4.i386.rpm//Specify installation directory

RPM-IVH--test gaim-1.3.0-1.fc4.i386.rpm//used to check dependencies; not a real installation;

RPM-UVH--oldpackage gaim-1.3.0-1.fc4.i386.rpm//new version degraded to old version

Rpm-qa | grep httpd #[Search Specifies whether RPM packages are installed]--all search *httpd*

RPM-QL httpd #[Search rpm Package]--list All files installation directory

Rpm-qpi linux-1.4-6.i368.rpm #[View RPM Packages]--query--package--install Package Information

RPM-QPF linux-1.4-6.i368.rpm #[View RPM Package]--file

RPM-QPR file.rpm #[View Package] Dependencies

Rpm2cpio file.rpm |cpio-div #[extract file]

RPM-IVH file.rpm #[Installing the new Rpm]--install--verbose--hash

Rpm-ivh

RPM-UVH file.rpm #[Upgrade a Rpm]--upgrade

Rpm-e file.rpm #[Delete an RPM package]--erase

B, yum Installation

Yum-y Install GCC

Yum-y install gcc-c++ This relatively simple recommendation, in the installation of too long if there is an error to note, may be previously installed some packages and the current installation of GC

C when the dependency package conflicts, need to RPM-E + need to delete the package name removed and then installed

It is also important to note that the Yum,redhat version is to be registered and may require a fee to be used. After surfing the Internet, you can uninstall the original yum, and then reinstall Yum, as detailed in the questions about the Yum source.

This may be installed after Yum will report the following error:

Set the plugins in the/etc/yum.conf file to 0.

Plugins=1//Whether the plug-in is enabled, default 1 is allowed, and 0 means disallowed. We usually use yum-fastestmirror this plugin.

C, regular download of GCC source code compiled to perform configure configuration, and then make make install

Linux Software Installation

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.