Linux-安装-配置-管理-软件常用命令

#参考书籍《Linux命令行与shell脚本编程大全(第三版)》
#如有侵权请告知,看到后会尽快删除
#常用的2种软件宝安装方式.常用命令列表

#1.Fedora CentOS
yum
dnf
urpm
zupper

dnf list installed

rpm -qa

zypper search -I

dnf list httpd

dnf list installed httpd

rpm -q httpd

dnf provides httpd

dnf install httpd

dnf install ./******.rpm

rpm -ivh ./******.rpm

dnf list updates

dnf update httpd

dnf remove httpd

dnf erase httpd

dnf clean all

dnf deplist httpd

dnf update --skip-broken

dnf repolist
########################################
➜  ~ dnf repolist
Last metadata expiration check: 1:39:15 ago on Tue 04 Dec 2018 10:17:27 PM EST.
repo id                                                                            repo name                                                                                            status
*fedora                                                                            Fedora 29 - x86_64                                                                                   58,207
*fedora-modular                                                                    Fedora Modular 29 - x86_64                                                                                8
google-chrome                                                                      google-chrome                                                                                             3
*rpmfusion-free                                                                    RPM Fusion for Fedora 29 - Free                                                                         596
*rpmfusion-free-updates                                                            RPM Fusion for Fedora 29 - Free - Updates                                                               114
skype-stable                                                                       skype (stable)                                                                                            5
teamviewer                                                                         TeamViewer - x86_64                                                                                      15
*updates                                                                           Fedora 29 - x86_64 - Updates                                                                         13,119
*updates-modular                                                                   Fedora Modular 29 - x86_64 - Updates                                                                      9
########################################

#####
urpmq --list-media
urpmi.addmedis path
zypper repos
zypper addrepo path

#####



#2.Debian Ubuntu
apt
apt-get
apt-cache
aptitude

aptitude show nginx

dpkg -L nginx

dpkg --search nginx

aptitude search nginx

aptitude install nginx

aptitude safe-upgrade

aptitude full-upgrade

aptitude dist-upgrade

aptitude remove nginx

aptitude purge nginx

cat /etc/apt/sources.list