Linux software management commonly used commands and options

rpm

/ Var / lib / rpm: database directory

 

-ivh x: x installation package

-Uvh x: x upgrade or install package, if there is no old version of x, then the installation x, x, or delete the old version before installing x.

-Fvh x: x upgrade package, if not installed an older version of x, x is not installed, or delete the old version after the installation of x x.

-ex: remove packages x

-qx: check whether the installation package x

-qa: List all installed packages

-ql x: x lists all the files in the package installed

-qi x: list the details of installed packages x

-qf x: x query files belonging to the package which is already installed

-qpl x: x package lists all files

-qpi x: x lists the details of the package

-V x: x package lists are modified files

--oldpackage: allows replaced by a newer version with an older version of the software package

--replacefiles: Even if you want to install the package will replace other files installed packages, and install the package

--replacepkgs: even if part of the package has been installed in the system, and install the package

--force: using --replacepkgs, the same --replacefiles, and effects --oldpackage

--nodeps: Ignore dependencies

--prefix: specify the installation path

 --rebuilddb: rpm rebuild database

 

yum

/etc/yum.conf: Profile

/etc/yum.repos.d: software resources directory

/ Var / cache / yum: cache directory

 

makecache: the download package information server to the local cache

clean packages: Delete the local cache packages

clean headers: Delete the local cache headers

clean all: Delete the local cache

localinstall x: x install a local package

install x: x installation package

--installroot = / some / path: specify the installation path

update: Upgrade all installed packages

update x: x Upgrade Package

remove x: x delete packages

erase x: x delete packages

deplist x: x is listed in the dependent packages

search x: According to the software package name and description, list all relevant packages and x

list: List all packages

list x: x is a glob expression, such as list java *, it represents the beginning of java list all packages

info x: x lists the details of the package

list installed: List all installed packages

list updates: Lists all upgradeable packages

check-update: List all upgradeable packages

info installed x: list the details of installed packages x

group list hidden: List all the installed package group

group info x: x lists the details of the package group

group insall x: x installation package group

group update x: x upgrade package group

group remove x: x delete package group

 

dpkg

/ Var / lib / dpkg / available: a list of installed packages

The installed package status: / var / lib / dpkg / status

 

-ix: Install x

-rx: remove packages x (retention configuration information)

-P x: remove packages x (including configuration information)

--unpack x: extract the package x, but not configured

--configure x: configuration has been unpacked but not configured packages x

-l: List all installed packages

-L x: x lists all installed packages of documents

-sx: list the details of an installed software package x

-S x: x query files belonging to the package which is already installed

--info x: x lists the details of the package

-cx: x package lists all files

 

apt

/etc/apt/sources.list: software resource configuration file

/ Var / cache / apt / archives: already downloaded package cache directory

/ Var / lib / apt / lists: the list of packages directory

 

apt-get update: download the package list

apt-get clean: delete the downloaded package cache

apt-get install x: x installation package

apt-get reinstall x: x reinstalling software packages

apt-get upgrade: upgrade all installed packages

apt-get upgrade x: x Upgrade Package

apt-get remove x: remove packages x (retention configuration information)

apt-get purge x: remove packages x (including configuration information)

apt-cache search x: x to search for packages by keyword

apt-cache search all: List all packages

apt-cache show x: x lists the details of the package

apt-cache depends x: x is listed in the dependent packages

apt-cache rdepends x: x is listed in the package depend on what packages

Guess you like

Origin www.cnblogs.com/gjb724332682/p/11332707.html
Recommended