apt 用法

apt用法

apt-get

apt list [package] list packages based on package names
apt search [keyword] search keyword in package descriptions
apt show [package] show package details
apt install [package]apt-get [options] install pkg1 [pkg2 ...]Install new packages
apt remove [package]apt-get [options] remove pkg1 [pkg2 ...]Remove packages
 apt-get autoremove [package]Remove automatically all unused packages
apt purge [package]apt-get purge [package]Remove packages and config files
apt updateapt-get updateRetrieve new lists of packages
apt upgradeapt-get upgradePerform an upgrade
apt full-upgrade upgrade the system by removing/installing/upgrading packages
apt dist-upgradeapt-get dist-upgradeupgrade the system by removing/installing/upgrading packages
 apt-get dselect-upgradeFollow dselect selections
apt edit-source edit the source information file
 apt-get [options] source pkg1 [pkg2 ...]Download source archives
 apt-get cleanErase downloaded archive files
 apt-get autocleanErase old downloaded archive files
 apt-get checkVerify that there are no broken dependencies
 apt-get downloadDownload the binary package into the current directory
 apt-get markauto 
 apt-get unmarkauto 
 apt-get build-depConfigure build-dependencies for source packages
 apt-get changelogDownload and display the changelog for the given package

apt-cache

apt-cache [options] command

apt-cache [options] gencachesBuild both the package and source cache
apt-cache [options] showpkg pkg1 [pkg2 ...]apt-cache [options] showpkg pkg1 [pkg2 ...]
apt-cache [options] showsrc pkg1 [pkg2 ...]Show source records
statsShow some basic statistics
dumpShow the entire file in a terse form
dumpavailPrint an available file to stdout
unmetShow unmet dependencies
searchSearch the package list for a regex pattern
showShow a readable record for the package
dependsShow raw dependency information for a package
rdependsShow reverse dependency information for a package
pkgnamesList the names of all packages in the system
dottyGenerate package graphs for GraphViz
xvcgGenerate package graphs for xvcg
policyShow policy settings



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值