The difference between wget and yum and apt-get in linux system commands

There are multiple versions of Linux currently on the market, mainly redhat series and debian series as follows:

1. RedHat series: Redhat, Centos, Fedora, etc.
2. Debian series: Debian, Ubuntu, etc.

(1) Wget is not an installation method, it is a kind of download software. Similar to Thunder, we can directly use wget to download the address
(2) ap-get is a software installation method under ubuntu, it is based on debian
(3) yum is under centos A software installation method, it is based on redhat

RedHat series 
1 Common installation package format rpm package, the command to install rpm package is "rpm -parameter" 
2 Package management tool yum 
3 Support tar package
Debian series 
1 Common installation package format deb package, the command to install deb package is "dpkg -Parameters " 
2 The package management tool apt-get 
3 supports tar package
tar is just a compressed file format, so it just compresses and packages the files. 
rpm is equivalent to the installation file in windows, it will automatically handle the dependencies between software packages.
yum can be used to run rpm packages:
install: yum install <package_name>
uninstall: yum remove <package_name>
update: yum update <package_name>
find: yum search <keyword>
list installable: yum list
list update: yum list updates
lists installed: yum list installed
lists all packages that are installed but not in Yum Repository: yum list extras
lists the specified packages: yum list <package_name>
apt-get can be used to run deb packages:
installation : Apt-get install <package_name>
Uninstall: apt-get remove <package_name>
Update: apt-get update <package_name>
Search: apt-cache search package
Get package information: apt-cache show package
delete clean: apt-get remove package-purge Delete package, including delete Configuration files, etc.
Download the package source code: apt-get source package to 
clean up useless packages: apt-get clean && sudo apt-get autoclean 
apt-get check to check whether there are damaged dependencies

Published 117 original articles · praised 48 · 300,000 views +

Guess you like

Origin blog.csdn.net/jamesdodo/article/details/105699561