Installing software in Linux

Source: Internet
Author: User

As a dick wire PHP programmer, then you are more or less to contact the Linux command, once we may be familiar with FreeBSD, but does not mean that we can use it, so, or honestly to share their own learning process notes, we often heard that Linux installation is very simple, But do you know how many different ways it is? Some people say that the source installation, some people say rpm package installation, some people say is the script, some people say is yum, then really have so many installs? What are the advantages and disadvantages of each? Think of all scared, can only slowly go deep, first learn to use the main, do not understand the knowledge, we have Google and Baidu, you can also take a ladder to find what you want, only you do not work hard, you do not have to do (at that time joking), said so much or application-oriented, books on the things everyone can know, But integrated practice is not necessarily everyone's ability is the same, so we still more practice!

RPM is a "Add/Remove Program" in Windows like Redhat Package Manager (Redhat Packages management tool)

RPM Execution Installation package
Binary packages (binary) and source code packages (sources) are two types. Binary packages can be installed directly on the computer, and the source code package will be automatically compiled and installed by RPM. Source code packages often use src.rpm as the suffix name.
For example: lamp environment, sometimes you will find that with the source code compiled installation lacks a lot of dependencies, for the novice, those who rely on how to solve, you may be a knot to solve, can all yum? I tell you, if you can not find that is the dynamic library, generally end with so, we could go to the relevant website to find: http://rpmfind.net/

Common Command combinations:

-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
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
http://mirrors.kernel.org/fedora/core/4/i386/os/Fedora/RPMS/gaim-1.3.0-1.fc4.i386.rpm
RPM-UVH file.rpm #[Upgrade a Rpm]--upgrade
Rpm-e file.rpm #[Delete an RPM package]--erase
Common parameters:
Install/upgrade/erase options:
-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=+ 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

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Installing software in Linux

Related Article

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.