apt % dpkg

Debian GNU/Linux uses apt short for Advanced Package Tool.

Install software using apt

apt-get install software
Updating the list of packages in your sources.list
apt-get update
Update software using apt
apt-get upgrade
To change the list of apt mirrors
apt-setup
Search for package
apt-cache search package
Uninstall software using apt
apt-get remove software

Shortcuts

update the package lists

# apt-get update
update the available package lists
# dselect update
upgrade all installed packages
# apt-get upgrade
installs package
# apt-get install pkg
uninstall package
# apt-get remove pkg

show all installed and removed packages

dpkg -l
show install status of package
dpkg -l pkg
show all packages that match pattern
dpkg -S pattern
list packages that contain string
dpkg 
list files in package
dpkg -L pkg
show status of package
dpkg -s pkg
show details of package
dpkg -p pkg
list relevant packages
apt-cache search string

install package from a deb file

# dpkg -i file.deb
purge package (and config?)
# dpkg -P pkg
re-run the configure for a package
# dpkg-reconfigure pkg
get the source
# apt-get source pkg
config build-deps for source and install as needed
# apt-get build-dep
install package from specific release
# apt-get -t release install pkg
prevent name from running at bootup
# update-rc.d -f name remove
upgrade the distribution
# apt-get dist-upgrade

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值