[Reading notes] Linux command line with Shell programming reading notes 04 installing software, editor notes

Source: Internet
Author: User

1. Debian and Redhat package management tools for two major Linux distributions

The Debian Package management tool is dpkg

The re-installation is apt

APT's tools are mainly

Apt-get Apt-cache Aptitude

Where aptitude need to be installed manually

Apt Install aptitude

Management interface

Search

Aptitude Search PackageName

Installation

Aptitude Install PackageName

Upgrade

Aptitude Safe-upgrade

Unloading

Aptitude Remove PackageName Aptitude pruge PackageName

The install source file for apt is

/etc/apt/source.list the management path within the store.

2 Installation of Red Hat

Package management tool Yum

RPM can also be installed using the Yum Localinstall xxxx.rpm method when installing offline.

To view packages that have already been installed

Yum List installed

If you see what files are provided by which package

Yum provides filename

Yum install PackageName Direct installation can be downloaded offline

The Yum Update operation

Yum Update

Yum Uninstall operation

Yum Remove PackageName

Yum Earse package_name

resource pool used by Yum

Files within the/ETC/YUM.REPOS.D

Yum empties the cache

Yum Clean all and Rm-rf/var/cache/yum

Yum Create cache

Yum Makecache

3. Install the software from the source code

TAR-ZXVF xxx.bz2 files, etc.

Then go to compile with directory./configure

Making && make Install

The./configure can be set at compile time by selecting--prefix= specific path and parameters

4. The most useful tool under the configuration file is Vim's main use:

Vim .... txt for editing

I enter edit mode

ESC exits edit mode into command mode

: Q Do not save exit

: q! Do not save a forced exit, the user has modified the file condition

: Wq Save and exit

DD Delete a whole row

G to last line

Exit to the command line you can use the U command to recall this modification and re-edit it.

[Reading notes] Linux command line with Shell programming reading notes 04 installing software, editor notes

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.