Linux network principles and software installation and other commands

Source: Internet
Author: User

The CentOS7 file system is XFS.

MTU, Maximum transmission Unit (Maximum transmission Unit

Ifconfig, English full name network interfaces Configuring, displays details of all the network adapters that are starting or sets the IP address of the network card in the system. interface, interface.

netmask, subnet mask, subnet mask.

Ifup starting the specified NIC

Ifdown suspending the specified NIC

The configuration file of the network card is stored/etc/sysconfig/network-scripts/ifcfg-ens33.

Network configuration (setting) is to modify the network configuration file for the NIC, you can reconfigure the network by using the text editor (vi) to directly edit the network configuration file.

rpm,red Hat package manage.

RPM's Common query instructions for installed software installation packages

-Q Query.  The first letter of query,-a all, the first letter of all. Rpm-qa |grep "SSH"

-QF that shows which installation package this file is installed in, and F is the first letter

-qi, displays the details of this package. I was the first letter of information

-QL shows all the files contained in this package, L is the first letter of the list

RPM Software Installation and removal work is often used in the options:

A) –i: installation (install) software.
b) –U: Upgrade (Upgrade) old version of the software.
c) –e: Remove/Remove (Erase) software.
d) –v: Displays detailed processing information.
E) –h: Displays the installation progress. Uninstall is not available

Understanding the RPM file name is divided into 5 parts, where

The 1th part is name, which indicates the names of the RPM packages;
The 2nd part is version, which indicates the revision number of the RPM package;
The 3rd part is release, which indicates the number of releases (fixed number) of this RPM package;
Section 4 is architectures, which indicates which platforms this RPM package applies to;
The last part is RPM, which indicates the file extension of this RPM package.

Yum is Yellow dog Updater, Modified. The purpose is to solve the problem of RPM dependency, user-friendly software installation, upgrade and so on.

Mastering the configuration of Yum
Yum configuration generally has two ways, one is to configure the yum.conf file in the/etc directory directly, and the other is to add the. repo file under the/ETC/YUM.REPOS.D directory. Repos,repo is repository, which means warehouse, resource pool.

Mastering the local Yum configuration
[[email protected] ~]# mount/dev/cdrom/mnt #挂载光盘到/mnt Directory
[Email protected] ~]# cd/etc/yum.repos.d/
[[email protected] yum.repos.d]# ls
Rhel-source.repo
[email protected] yum.repos.d]# CP Rhel-source.repo Rhel.repo #拷贝一份配置文件
[Email protected] yum.repos.d]# vi rhel.repo #编辑配置文件如下 [rhel-local] #模块名称, you must modify the same name as the other. Repo file name=red Hat Enterprise Linux 6 local repo #名称随便起baseurl =file:///mnt #指定rpm仓库的位置
Enabled=1 #1开启该配置, 0 to close
Gpgcheck=1 #1为校对软件

[email protected] ~]# Yum install vsftpd httpd #安装vsftpd及httpd服务

7. Mastering the use of Yum installation software
Yum–y Install software name
8. Mastering the use of Yum to remove software
Yum–y Remove software Name
9. Mastering the use of Yum installation components
Yum–y Groupinstall Component Name
10. Mastering the use of Yum to remove components
Yum–y Groupremove Component Name

-Y represents answer yes to all questions

11. Master Purge Yum Cache

Yum Clean All

12. Find Packages using Yum
Yum Search

Linux network principles and software installation and other commands

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.