Ubuntu 软件安装
来源:互联网 发布:传智播客php视频下载 编辑:程序博客网 时间:2024/06/04 18:00
dpkg 命令常用格式如下:
sudo dpkg -i fakeroot.deb
#安装fakeroot.deb软件包(其中-i等价于--install)
sudo dpkg -I fakeroot.deb
#查看fakeroot.deb软件包的详细信息,包括软件名称、版本以及大小等(其中-I等价于--info)
sudo dpkg -c fakeroot.deb
#查看fakeroot.deb软件包中包含的文件结构(其中-c等价于--contents)
sudo dpkg -l fakeroot.deb
#查看fakeroot软件包的信息(软件名称可通过dpkg -I命令查看,其中-l等价于--list)
sudo dpkg -L fakeroot
#查看fakeroot软件包安装的所有文件(软件名称可通过dpkg -I命令查看,其中-L等价于--listfiles)
sudo dpkg -s fakeroot
#查看fakeroot软件包的详细信息(软件名称可通过dpkg -I命令查看,其中-s等价于--status)
sudo dpkg -r fakeroot
# 卸载fakeroot软件包(软件名称可通过dpkg -I命令查看,其中-r等价于--remove)
-r, --remove, -P, --purge package...|-a|--pending #Remove an installed package.
-r or --remove remove everything except conffiles. This may avoid having to reconfigure the package if it is reinstalled later. (Conffiles are configuration files that are listed in the DEBIAN/conffiles control file).
-P or --purge removes everything, including conffiles. If -a or --pending is given instead of a package name, then all packages unpacked, but marked to be removed or purged in file /var/lib/dpkg/status, are removed or purged, respectively.
Note: some configuration files might be unknown to dpkg because they are created and handled separately through the configuration scripts. In that case, dpkg won't remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge. Of course, this only applies to files in system directories, not configuration files written to individual users' home directories.
Removing of a package consists of the following steps:
1. Run prerm script
2. Remove the installed files
3. Run postrm script
Note: deb 是debian linus的安装格式,跟 red hat 的rpm非常相似,最基本的安装命令是:dpkg -i file.deb或者直接双击此文件,dpkg命令无法自动解决依赖关系,如果安装的deb包存在依赖包,则应避免使用此命令,或者按照依赖关系顺序安装依赖包;
dpkg 是Debian Package 的简写,是为Debian专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg,例如Ubuntu、Knoppix 等。
- ubuntu软件安装命令
- UBuntu 软件安装
- ubuntu软件安装命令
- Ubuntu 软件安装详解
- ubuntu安装软件
- ubuntu系统安装软件
- ubuntu 软件安装卸载
- ubuntu安装卸载软件
- ubuntu下安装软件
- ubuntu如何安装软件
- Ubuntu 软件安装详解
- ubuntu linux 软件安装
- Ubuntu 软件安装详解
- ubuntu下软件安装
- ubuntu 安装卸载软件:
- ubuntu 软件安装介绍
- Ubuntu安装软件方法
- ubuntu安装软件
- quick-cocos2dx将C++导出lua
- Markdown编辑器总结
- 基于map的海量数据归类
- iOS中摄像头/相册获取图片,压缩图片,上传服务器方法总结
- 数据分析-人群画像和目标群体分析
- Ubuntu 软件安装
- 遍历Map的四种方法
- 开博记
- Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules
- CentOS 7 1511升级python到2.7.11后goagent引发的血案
- PHP个推for iOS demo实例
- 大型网站架构演变和知识体系
- 静态成员函数
- 【C#——揭开你的面纱】