Linux package management (next)

Source: Internet
Author: User

When we wrote the VI configuration file, we found that # could not comment out a line of information

So what is the Linux standard annotation information?

To view the software's corresponding package commands

rpm–ap| grep vim

Most example are needed case document double quote note vim configuration file

To be honest, Linux package management

(5) Verify the RPM–V software name when the configuration file of the software is changed to tell you the location changed.

The size of the s file changes when it occurs. There is also a s:md5sum md5sum changes when the contents of a file are changed.

T time change D device file u file user G file user group M file permissions L link file

Package file extraction (first know which package the profile was mistakenly deleted from)

Queries can be used to obtain such RPM–QF Inittab

Then use the command Rpm2cpio command to extract

Rpm2cpio Directory/Package full name |cpio–idv./etc/inittab

Can only be extracted to the current directory

You can do an experiment here. Delete inittab files with no backup enabled disc repair extract a Inittab file from the package to the/etc directory for system repair

Two: The installation of the source code package

Source code packages The best thing to do is ignore the platform, which can be installed under any platform according to the features of the platform.

Source code packages are widely supported by the platform, so similar to custom effects.

Most of the source code packages are. tar.gz format

We need to extract the decompression commands we described earlier.

First, the TAR source code package and then into the directory generally has config

CD Proftp-1.3.3d

./CONFIG–PREFIX=/USR/LOCAL/PROFTPD//installed in this path, it is possible to require additional dependent packages, which can be installed with Yum

Make calls GCC to compile the source code

Make install to copy the compiled file to the specified directory

Script installation App (Webmin,open offic)

TAR–XZVF Package Name

CD to unzip the completed package

View installation files What's the general name of the Readme?

Follow the Readme to install a win-like installation

If you need to uninstall the source code package, kill the process and RM swap will be OK.

APT Package Management Apt-cache Search

Apt-cache Show

Apt-get Install

Apt-get Remove

Apt-get Update

Apt-get Upgrade

Linux package management (next)

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.