摘要:简单概括了apt-get的使用,包括:安装,卸载,更新,查找。
1. 安装:
1.1 基本命令
#apt-get install packagename
这里将安装你需要的在sources.lists中的最新的软件包,如果有其他依赖则自动安装相应的依赖软件包。packagename可以是多个软件包。一些有用的选项:
-h This help text.
-d Download only - do NOT install or unpack archives
-f Attempt to continue if the integrity check fails
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-u Show a list of upgraded packages as well
1.2 指定版本
# apt-get install package=version
1.3 修复或者只安装最新版本:
#apt-get --reinstall install packagename这里,