Ubuntu 学习4——Ubuntu包管理 - iiishooter's Blog - Attitude is Altitude

Ubuntu 学习4——Ubuntu包管理

iiishooter posted @ 2010年5月16日 08:19 in Linux with tags Ubuntu学习 , 6817 阅读

4. Ubuntu包管理

4.1 apt-***软件套装和aptitude

4.2.1 apt-get

apt:advanced package tools

apt-get [参数] [包的名称]

参数:

install:安装新的包。先下载到硬盘,再安装。如果缓冲存储中存在该包则直接安装

remove:卸载。配置文件将保留,以便下次安装。

autoremove:删除系统没有用到的包

clean:删除硬盘里面的缓冲存储的包(默认位置:/var/cache/apt/archives

autoclean:删除缓冲存储里面旧版本的包

source:下载源码

update:下载更新软件包列表

upgrade:升级系统

dist-upgrade:发布版升级

check:检查系统完整性

 

4.2.2 apt-cdrom

将光盘作为优先源

apt-cdeom [参数]

参数:

add:将光盘添加到source.list之中

 

4.2.3 apt-key

下载密钥,不常用

 

4.2.4 aptitude

作用:与apt-get类似

aptitude [参数] …

部分参数:

purge:卸载软件包并删除其配置文件

hold:将软件包至于保护状态,即有新版本也不再动升级。与之对应的是unhold

show:显示一个软件包的详细信息

changelog:查看一个软件包的changelog

reinstall:重新安装一个包

 

4.3 其他包管理命令

4.3.1 dkpg

这个命令是包管理系统的核心。apt-getaptitude最终都是调用dkpg进行包管理的。安装一些自己下载的deb文件不能使用aptitude等命令,而应该:

zhangchao@zhangchao-laptops: sudo dkpg -i xxxx.deb

dpkg -configure -a 对所有包进行重新检查设置

 

4.3.1 alien

作用:将rpm包装为deb格式

alien [文件名]

产生的deb包要用dkpg安装

 

真诚欢迎广大网友留言讨论!
CBSE 7th Class Quest 说:
2022年9月19日 17:28

The Central Board of Secondary Education has issued sample model papers with study guides and prior years' old test previous papers in PDF format. CBSE 7th Class Question Paper For evaluation-1, evaluation-2, evaluation-3, and evaluation-4 exams held under Term-1, Term-2, Term-3, and Term-4 exams of Paper-1 & Paper-2 or Part-A & Part-B Section for all subjects of the course for all Hindi medium, English medium, Urdu medium, and another regional language student, the board has designed those CBSE 7th Class Model Paper 2023.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee