Install and manage applications with basic linux Commands

Source: Internet
Author: User
I. Composition of linux applications: common executable program files,/usr/bin server programs, management program files,/usr/sbin configuration files,/etc log files, /var/log for application reference documentation,/usr/share/doc execution file and man manual for configuration file,/usr/shar... i. Composition of linux applications
 
Common executable program file,/usr/bin
Server Program, administrative program file,/usr/sbin
Configuration file,/etc
Log file,/var/log
For more information about the application, see/usr/share/doc.
Man Manual of the execution file and configuration file,/usr/share/man
II. package encapsulation type
 
RPM software package: the extension is ". rpm". you need to use the rpm command in linux.
DEB software package: the extension is ". deb". only the DPKG mechanism can be used for installation in the linux operating system. to install DEB software, you must use the dkpg command in the linux system.
Source code package: a. .tar.gz.pdf and ".tar.bz2"
Software packages that provide installation programs: the extensions are different, and most of them are in the TarBall format.
Green installation-free software package: it directly contains compiled execution program files without special installation.
III. RPM Package management tools
 
The RPM Package name format, "software name-software version-release times. hardware platform type. rpm"
Role of rpm commands
Query and verify RPM software package information
Install, upgrade, and uninstall the rpm software package
Maintenance of rpm database information and other comprehensive management operations
"-Q" for rpm query and without the option can be used to query whether the software package with a known name has been installed successfully.
 
-Qa: displays the list of all software installed in RPM mode in the current system.
-Qi: view the name, version, license agreement, usage description, and other details of the specified software package.
-Ql: displays the list of all directories and files installed by the specified software package in the current system.
-Qf: check which package is installed in the specified file or directory (-- file)
-Qc: displays the list of configuration files installed by the specified software package in the current system.
-Qd: displays the list of documents (-- docfiles) installed by the specified software package in the current system.
 
For example, a list of all RPM packages installed in the current system is displayed, and the number of software packages is counted.
[Root @ localhost ~] # Rpm-qa | wc-l
 
Query uninstalled RPM packages
 
-Qpi: view the name and version of a specified software package.
-Qpl: view the list of all target directories and files to be installed.
-Qpc: view the list of configuration files to be installed for the software package.
-Qpd: view the list of documents to be installed for the software package.
 
Install, upgrade, and uninstall the RPM software package
 
-I: Install a new RPM package in the current system.
-E: uninstall the software package with the specified name.
-U: checks a software package in the upgrade system. if the software package is not installed, it is equivalent to-I
-F: check and update a software package in the system. if the software package is not installed, discard the installation.
-- Force: force a software package to be installed. it is used to replace or replace the new version with the old version.
-- Nodeps: the dependency is ignored when a software package is upgraded, installed, or uninstalled.
-H: The installation progress is displayed as # during installation.
-V: displays detailed information during software installation.
 
Maintain the RPM database
 
-- Rebuilddb
-- Initdb
 
4. Compile the installer from the source code
 
The first development environment is free software. the gcc compiler is the best choice.
 
Basic process
 
Unpack, tar
-- Prefix =/usr/local/aa can be used for configuration and configure to specify where to install
Compile and make
Install and make install
 
You can also use & to connect these commands
./Configure & make install
 
 
 
This article is from the "Tiandao reward Qin-Chang Shuangyang" blog

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.