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