dpkg

license info of a deb package

大憨熊 提交于 2019-11-28 07:20:53
问题 I am trying to get license information of uninstalled deb packages. dpkg --info <package-name>.deb does not give that information. Is there any command in ubuntu which will give this info? (In rpm world rpm -qpi gives that info) 回答1: There's no simple command that I know of. You can do something like this: dpkg-deb --fsys-tarfile foo.deb |tar -xvO ./usr/share/doc/foo/copyright This prints the file to standard output. Edit Hmm, that sounds hard. After a quick perusal of the apt cache on my

dpkg-shlibdeps: error: no dependency information found for

白昼怎懂夜的黑 提交于 2019-11-28 04:53:19
I'm compiling a deb package and when I run dpkg-buildpackage I get: dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libopencv_highgui.so.2.3 ... make: *** [binary-arch] Error 2 This happens because I installed the dependency manually. I know that the problem will be fixed if I install the dependency (or use checkinstall), and I want to generate the package anyway because I'm not interested on dependency checking. I know that I can give to dpkg-shlibdeps the option --ignore-missing-info which prevents a fail if dependency information can't be found. But I don't know

Package php5 have no installation candidate (Ubuntu 16.04)

浪子不回头ぞ 提交于 2019-11-27 18:04:04
When i try to install php5 in Ubuntu 16.04 by using following code: sudo apt-get install php5 php5-mcrypt I get following error: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5' has no installation candidate I have tried reinstalling but it does not help. All this error was encountered after I updated my 15.10 Ubuntu to 16.04 Rodrigo Stadler Ubuntu 16.04 comes with

Dpkg 常用指令操作快速参考

馋奶兔 提交于 2019-11-27 10:46:31
Debian,以及基于 Debian 的系统,如 Ubuntu 等,所使用的包格式为 deb。以下为操作 deb 包的常用 Dpkg 指令表,供初学的朋友参考。 命令 作用 dpkg -i package.deb 安装包 dpkg -r package 删除包 dpkg -P package 删除包(包括配置文件) dpkg -L package 列出与该包关联的文件 dpkg -l package 显示该包的版本 dpkg --unpack package.deb 解开 deb 包的内容 dpkg -S keyword 搜索所属的包内容 dpkg -l 列出当前已安装的包 dpkg -c package.deb 列出 deb 包的内容 dpkg --configure package 配置包 注意:更多选项可通过 dpkg -h 查询,有些指令需要超级用户权限才能执行。 来源: oschina 链接: https://my.oschina.net/u/724931/blog/178410

linux下操作.deb文件

非 Y 不嫁゛ 提交于 2019-11-27 10:46:15
deb 格式是 Debian 系统(包含 Debian 和 Ubuntu )专属安装包格式,配合 APT 软件管理系统,成为了当前在 Linux 下非常流行的一种安装包。进入 2.x 时代之后有 Cydia 作者 Jay Freeman(saurik) 移植到 iPhone 平台上,一起的还有 APT 软件管理系统。 以下是一些 Dpkg 的普通用法: 1、dpkg -i <package.deb> 安装一个 Debian 包裹文件,如你手动下载的文件。 2、dpkg -c <package.deb> 列出 <package.deb> 的内容。 3、dpkg -I <package.deb> 从 <package.deb> 中提取包裹信息。 4、dpkg -r <package> 移除一个已安装的包裹。 5、dpkg -P <package> 完全清除一个已安装的包裹。和 remove 不同的是,remove 只是删掉数据和可执行文件,purge 另外还删除所有的配制文件。 6、dpkg -L <package> 列出 <package> 安装的所有文件清单。同时请看 dpkg -c 来检查一个 .deb 文件的内容。 7、dpkg -s <package> 显示已安装包裹的信息。同时请看 apt-cache 显示 Debian 存档中的包裹信息,以及 dpkg -I 来显示从一个

Ubuntu下deb包的安装方法

…衆ロ難τιáo~ 提交于 2019-11-27 10:46:00
deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是: dpkg -i file.deb dpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg,例如Ubuntu、Knoppix 等。 以下是一些 Dpkg 的普通用法: 1、dpkg -i <package.deb> 安装一个 Debian 软件包,如你手动下载的文件。 2、dpkg -c <package.deb> 列出 <package.deb> 的内容。 3、dpkg -I <package.deb> 从 <package.deb> 中提取包裹信息。 4、dpkg -r <package> 移除一个已安装的包裹。 5、dpkg -P <package> 完全清除一个已安装的包裹。和 remove 不同的是,remove 只是删掉数据和可执行文件,purge 另外还删除所有的配制文件。 6、dpkg -L <package> 列出 <package> 安装的所有文件清单。同时请看 dpkg -c 来检查一个 .deb 文件的内容。 7、dpkg -s <package> 显示已安装包裹的信息。同时请看 apt-cache 显示 Debian 存档中的包裹信息,以及

Ubuntu下deb包的安装方法

蓝咒 提交于 2019-11-27 10:45:48
deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是: dpkg -i file.deb dpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg,例如Ubuntu、Knoppix 等。 以下是一些 Dpkg 的普通用法: 1、dpkg -i <package.deb> 安装一个 Debian 软件包,如你手动下载的文件。 2、dpkg -c <package.deb> 列出 <package.deb> 的内容。 3、dpkg -I <package.deb> 从 <package.deb> 中提取包裹信息。 4、dpkg -r <package> 移除一个已安装的包裹。 5、dpkg -P <package> 完全清除一个已安装的包裹。和 remove 不同的是,remove 只是删掉数据和可执行文件,purge 另外还删除所有的配制文件。 6、dpkg -L <package> 列出 <package> 安装的所有文件清单。同时请看 dpkg -c 来检查一个 .deb 文件的内容。 7、dpkg -s <package> 显示已安装包裹的信息。同时请看 apt-cache 显示 Debian 存档中的包裹信息,以及

dpkg -i .deb报错

╄→гoц情女王★ 提交于 2019-11-27 05:43:04
当我执行 dpkg -i AhMyth_linux64.deb 时报错,有些依赖未被安装,当我 apt install时,还是报错,最后根据提示,执行: apt --fix-broken install 再次执行dpkg ,ok!! 来源: https://blog.csdn.net/qq_37035946/article/details/99461620

dpkg-shlibdeps: error: no dependency information found for

社会主义新天地 提交于 2019-11-27 05:29:57
问题 I'm compiling a deb package and when I run dpkg-buildpackage I get: dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libopencv_highgui.so.2.3 ... make: *** [binary-arch] Error 2 This happens because I installed the dependency manually. I know that the problem will be fixed if I install the dependency (or use checkinstall), and I want to generate the package anyway because I'm not interested on dependency checking. I know that I can give to dpkg-shlibdeps the option -

Package php5 have no installation candidate (Ubuntu 16.04)

别来无恙 提交于 2019-11-26 22:37:53
问题 When i try to install php5 in Ubuntu 16.04 by using following code: sudo apt-get install php5 php5-mcrypt I get following error: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5' has no installation candidate I have tried reinstalling but it does not help. All this