【Ubuntu】dpkg-deb -c :查看deb文件中的内容
1、dpkg-deb -c :查看deb文件中的内容
$ dpkg-deb -c package
eg:
$ dpkg-deb -c sogoupinyin_2.2.0.0108_amd64.deb
drwxr-xr-x root/root 0 2018-04-18 16:50 ./
drwxr-xr-x root/root 0 2018-04-18 16:50 ./etc/
drwxr-xr-x root/root 0 2018-04-18 16:50 ./etc/X11/
drwxr-xr-x root/root 0 2018-04-18 16:50 ./etc/X11/Xsession.d/
-rw-r--r-- root/root 1427 2018-04-18 16:48 ./etc/X11/Xsession.d/72sogoupinyin
drwxr-xr-x root/root 0 2018-04-16 17:42 ./etc/xdg/
drwxr-xr-x root/root 0 2018-04-18 16:50 ./etc/xdg/autostart/
drwxr-xr-x root/root 0 2018-04-16 17:43 ./usr/
drwxr-xr-x root/root 0 2018-04-18 16:50 ./usr/bin/
-rwxr-xr-x root/root 4212560 2018-04-18 16:50 ./usr/bin/sogou-qimpanel
-rwxr-xr-x root/root 589336 2018-04-18 16:50 ./usr/bin/sogou-qimpanel-watchdog
-rwxr-xr-x root/root 6208 2018-04-18 16:50 ./usr/bin/sogou-sys-notify
-rwxr-xr-x root/root 302 2018-04-18 16:48 ./usr/bin/sogou-session
-rwxr-xr-x root/root 3118 2018-04-18 16:48 ./usr/bin/sogou-diag
drwxr-xr-x root/root 0 2018-04-16 17:43 ./usr/lib/
drwxr-xr-x root/root 0 2018-04-16 17:43 ./usr/lib/mime/
drwxr-xr-x root/root 0 2018-04-16 17:43 ./usr/lib/mime/packages/
-rw-r--r-- root/root 228 2018-04-16 17:33 ./usr/lib/mime/packages/fcitx-ui-sogou-qimpanel
drwxr-xr-x root/root 0 2018-03-29 11:36 ./usr/lib/x86_64-linux-gnu/
drwxr-xr-x root/root 0 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/
-rw-r--r-- root/root 31496 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/fcitx-autoeng-ng.so
-rw-r--r-- root/root 23704 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/fcitx-fullwidth-char-enhance.so
-rw-r--r-- root/root 31368 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/fcitx-punc-ng.so
-rw-r--r-- root/root 2061504 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoucloudpinyin.so
-rw-r--r-- root/root 2061504 2018-04-18 16:50 ./usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so
drwxr-xr-x root/root 0 2018-04-18 16:50 ./usr/share/
...
2、dpkg-deb详解
$ dpkg-deb --help
Usage: dpkg-deb [ …]
Commands:
-b|–build [] 生成档案deb包.
-c|–contents 列出deb包内容.
-I|–info [ …] 打印包的信息到标准输出
$ dpkg-deb -I sogoupinyin_2.2.0.0108_amd64.deb new debian package, version 2.0.size 22915896 bytes: control archive=11879 bytes.34 bytes, 1 lines conffiles 1446 bytes, 18 lines control 33969 bytes, 343 lines md5sums 3013 bytes, 84 lines * postinst #!/bin/sh2766 bytes, 78 lines * postrm #!/bin/sh304 bytes, 13 lines * preinst #!/bin/shPackage: sogoupinyinVersion: 2.2.0.0108Architecture: amd64Maintainer: Ubuntu Kylin Team <ubuntukylin-members@lists.launchpad.net>Installed-Size: 56991Depends: fcitx (>= 1:4.2.8.3-3~), fcitx-frontend-gtk2, fcitx-frontend-gtk3, fcitx-frontend-qt4, libfcitx-qt0 | fcitx-libs-qt, fcitx-module-kimpanel, im-config, libopencc2 | libopencc1, lsb-release, unzip, zip, x11-utils, fcitx-libs (>= 4.2.7), libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.12.0), libidn11 (>= 1.13), libnotify4 (>= 0.7.0), libqt4-dbus (>= 4:4.8.0), libqt4-declarative (>= 4:4.8.0), libqt4-network (>= 4:4.8.0), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libqtwebkit4 (>= 2.1.0~2011week13), libstdc++6 (>= 4.6), libx11-6, zlib1g (>= 1:1.2.0)Recommends: fcitx-frontend-qt5, fonts-noto-cjk, dconf-gsettings-backend | gsettings-backendSection: non-free/utilsPriority: optionalHomepage: http://pinyin.sogou.com/linuxDescription: Sogou Pinyin Input MethodBased on web search engine technology, Sogou Pinyin input method isthe next-generation input method designed for Internet users. As itis backed with search engine technology, user input method can beextremely fast, and it is much more advanced than other input methodengines in terms of the volume of the vocabulary database and itsaccuracy. Sogou input method is the most popular input methods inChina, and Sogou promises it will always be free of charge.
-W|–show 显示包信息
$ dpkg-deb -W sogoupinyin_2.2.0.0108_amd64.deb
sogoupinyin 2.2.0.0108
-f|–field [ …] 显示指定字段到终端.
-e|–control [] Extract control info.
-x|–extract Extract files.
-X|–vextract Extract & list files.
-R|–raw-extract
Extract control info and files.
–fsys-tarfile Output filesystem tarfile.
-?, --help 帮助信息.
–version 版本.
<deb> is the filename of a Debian format archive.
<cfile> is the name of an administrative file component.
<cfield> is the name of a field in the main `control' file.
Options:
–showformat= Use alternative format for --show.
-v, --verbose Enable verbose output.
-D, --debug Enable debugging output.
–deb-format= Select archive format.
Allowed values: 0.939000, 2.0 (default).
–old Legacy alias for ‘–deb-format=0.939000’.
–new Legacy alias for ‘–deb-format=2.0’.
–nocheck Suppress control file check (build bad
packages).
-z# Set the compression level when building.
-Z Set the compression type used when building.
Allowed types: gzip, xz, bzip2, none.
-S Set the compression strategy when building.
Allowed values: none; extreme (xz);
filtered, huffman, rle, fixed (gzip).
Format syntax:
A format is a string that will be output for each package. The format
can include the standard escape sequences \n (newline), \r (carriage
return) or \ (plain backslash). Package information can be included
by inserting variable references to package fields using the ${var[;width]}
syntax. Fields will be right-aligned unless the width is negative in which
case left alignment will be used.
Use ‘dpkg’ to install and remove packages from your system, or
‘apt’ or ‘aptitude’ for user-friendly package management. Packages
unpacked using ‘dpkg-deb --extract’ will be incorrectly installed !
相关文章:

捕获Camera并保存图片到本地(照相功能) -samhy
Flex博文 捕获Camera并保存图片到本地(照相功能) -samhy作者:admin 日期:2010-07-12字体大小: 小 中 大捕获Camera并保存图片到本地(照相功能)这几天对Camera类进行了一下规整,并利用JPGEncoder类实现了照相的功能,代码如下: XML/HTML代码import flash.m…

【C++】模板函数的声明和定义必须在同一个文件中
1、问题描述 习惯性的将函数的定义和实现,分别写在头文件和源文件(.cpp)中。今天也按照这个习惯实现了一个模板函数。然后编译时报错 ... error: undefined reference to ...2、原因分析 c中模板的声明和定义不能分开。C中每一个对象所占用…

基于AWS-ELK部署系统日志告警系统
前言 运维故障排障速度往往与监控系统体系颗粒度成正比,监控到位才能快速排障 在部署这套系统之前,平台所有系统日志都由GraylogZabbix,针对日志出现的错误关键字进行告警,这种做法在运维工作开展过程中暴露出多个不足点ÿ…

《周志华机器学习详细公式推导版》发布,Datawhale开源项目pumpkin-book
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」全日程揭晓,请扫码咨询 ↑↑↑来源 | Datawhale(ID:Datawhale) 如果让你推荐两本国内机器学习的入门经典作,你会推荐哪些呢?相信大家同我一样ÿ…

JVM内存泄漏检测与处理
JVM内存泄漏检测与处理(JVM Memory Leak detection and handling) JVM垃圾回收机制的原则和方法 JVM垃圾回收中一个基本原则是对象没有被引用或则引用其它对象,换句话说当一个对象在heap 中是隔离(isolation)状态的时候,垃圾回收器…

【Dlib】dlib和opencv的互转
一、dlib::matrix转换成cv::Mat 1、注意事项: 1)将dlib::matrix转成BGR格式后,再转换成cv::Mat,因为cv::Mat中是按照BGR顺序存储 2)注意最后添加的cv::Mat::clone()函数,因为dlib::toMat(tmp)返回的mat数…

原创 人物志|山东省临沭县 - 一位身残志坚的奋斗青年 - 吴忠军
原创 人物志|山东省临沭县 - 一位身残志坚的奋斗青年 - 吴忠军 02972018-04-29 16:15:27 人物志|山东省临沭县 - 一位身残志坚的奋斗青年 - 吴忠军 齐鲁晚报 2018年04月29日 2018年4月29日,山东省临沂市临沭县,一位年轻的小伙子。吴忠军,山东…

百度SLG拿下前锤子科技CTO钱晨,还要合并小鱼在家? | 极客头条
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」全日程揭晓,请扫码咨询 ↑↑↑整理 | 一一出品 | AI科技大本营(id:rgznai100)2016 年 7 月,锤子科技前 CTO 钱晨从该公司退休的消息被证实,关于其离职的…

【Dlib】dlib实现深度网络学习之 input层
1、 dlib::input 模板类,深度神经网络的简单输入层,它将某种图像作为输入并将其加载到网络中。 这是一个基本的输入层,它只是简单地将图像复制到一个张量中。 注意:dlib::input只支持输入dlib::matrix和dlib::array2d类型&#x…

首发 | 13篇京东CVPR 2019论文!你值得一读~ 技术头条
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」全日程揭晓,请扫码咨询 ↑↑↑编者按:计算机视觉和模式识别大会 CVPR(Conference on Computer Vision and Pattern Recognition)作为人工智能领域计算机视觉方向的重要学术会议…

Windows 活动目录(AD)服务器系统升级到2012之活动目录角色迁移(三)
4.5迁移服务器角色到AD20121. 打开powershell,使用命令迁移服务器角色到AD2008输入命令Ntdsutil输入命令Roles输入命令Connections输入命令Connect to server AD2012,连接AD2012控制器输入命令QUIT输入Transfer infrastructure master命令,转…

《星际争霸2》引擎技术解析
就在SIGGRAPH大会刚结束之后,AMD和暴雪在AMD官方网站上放出了《星际争霸II》的官方技术文档,通过游戏引擎技术的展示让星际迷们感受到越来越多的惊喜。画面优化给CPU带来考验着色方面,在使用原型的基础上利用3D Studio MAX让程序员对整体效果…

回顾与展望:大热的AutoML究竟是什么? | 技术头条
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」全日程揭晓,请扫码咨询 ↑↑↑来源 | 第四范式编者按:AutoML(Automatic Machine Learning,自动机器学习)旨在研究在没有专业知识的情况下使用的低门槛甚至零门槛的…

【Python】深度学习中将数据按比例随机分成随机 训练集 和 测试集的python脚本
深度学习中经常将数据分成 训练集 和 测试集,参考博客,修改python脚本 randPickAITrainTestData.py 。 功能:从 输入目录 中随机检出一定比例的文件或目录,移动到保存 测试集目录 中,原输入目录作为训练目录。 import…

docker 系列之 配置阿里云镜像加速器
1.登录阿里云 2.登录后找到右上角的“管理中心”,点击进入后》点击“镜像加速器”;剩下的安装文档配置就好 问题1:配置完后还是提示:Tag latest not found in repository 【本人也是在这里被困了好久,尝试了各种方法】 解决方案:最后发现这里…

LVM-HOWTO/学习笔记(二)
1. 在3块scsi磁盘上创建lv Run pvcreate on the disks # pvcreate /dev/sda # pvcreate /dev/sdb # pvcreate /dev/sdc Create a volume group # vgcreate my_volume_group /dev/sda /dev/sdb /dev/sdc/ Run vgdisplay to verify volume group # vgdisplay # vgdisplay…

【python】使用python脚本将LFW数据中1672组同一个人多张照片拷贝出来
使用python脚本将LFW数据中1672组同一个人多张照片拷贝出来 dataCleaning4multiple.py 源码如下: import os, random, shutil import sys, getopt import stringdef getDir(argv):inPath outPath num2try:opts, args getopt.getopt(argv,"hi:o:n:",[&…

EXP6 信息搜集与漏洞扫描
1.实验有关问题 (1)哪些组织负责DNS,IP的管理。 ICANN是一个集合了全球网络界商业、技术及学术各领域专家的非营利性国际组织,负责在全球范围内对互联网唯一标识符系统及其安全稳定的运营进行协调,它能决定域名和IP地址…

百度发的208亿春晚红包,靠这样的技术送到了你手上 | 解读
2019 年的春晚红包项目对百度而言是一次大考,背后需要强大的技术来支撑。如你所见,百度不负“技术大厂”的标签,春晚红包期间系统稳定运行,没有出现宕机事故。在这样一个庞大而复杂的项目面前,他们是如何去用技术去化解…

一步一步学Silverlight 2系列(10):使用用户控件
概述 Silverlight 2 Beta 1版本发布了,无论从Runtime还是Tools都给我们带来了很多的惊喜,如支持框架语言Visual Basic, Visual C#, IronRuby, Ironpython,对JSON、Web Service、WCF以及Sockets的支持等一系列新的特性。《一步一步学Silverlig…

何恺明的GN之后,权重标准化新方法能超越GN、BN吗? | 技术头条
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」,购票请扫码咨询 ↑↑↑作者 | Siyuan Qiao、Huiyu Wang、Chenxi Liu、Wei Shen、Alan Yuille(Johns Hopkins University,约翰霍普金斯大学)译者 | 刘畅编辑 | Jane出品 | AI科…

【AI】CelebA数据介绍、下载及说明
1、简介 CeleA是香港中文大学的开放数据,包含10177个名人的202599张图片 官网:http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html 下载地址(百度网盘,官方的):http://pan.baidu.com/s/1eSNpdRG 【python】…

Zend Framework Mail通过网易免费邮箱发送邮件
2019独角兽企业重金招聘Python工程师标准>>> 做为一个苦逼的个人站长,做一个小网站,本来愿意来看的人就不多,再弄一个不能找回密码的会员系统?基本上被判死刑了 。阿里云的短信也要钱啊,而且只支持PHP 5.5以…

将shp导入SDE中出现“表或视图不存在”问题
其原因是权限不够,下边代码可以用来检查权限是否够。 private void ESRILicense() { IAoInitialize mAoInitialize new AoInitializeClass(); esriLicenseStatus licenseStatus (esriLicenseStatus)mAoInitialize.IsProductCodeAvai…

【python】使用python脚本将CelebA中同一人的图片捡到对应单独的文件夹中
1、目的 CelebA的所有的照片都在一个文件夹中,为了能在dlib训练人脸识别时,方便使用,将CelebA中同一人的图片捡到对应单独的文件夹中。 【AI】CelebA数据介绍、下载及说明 2、方法 首先创建10178个目录,然后解析Anno/identity_…

仅用语音,AI就能“脑补”你的脸! | 技术头条
点击上方↑↑↑蓝字关注我们~「2019 Python开发者日」,购票请扫码咨询 ↑↑↑作者 | Wav2pix 研究团队译者 | 刘畅编辑 | Jane出品 | AI科技大本营(公众号id:rgznai100)【导语】之前我们为大家介绍过一项非常酸爽的研究“Talking…

如何在SAP云平台上使用MongoDB服务
首先按照我这篇文章在SAP云平台上给您的账号分配MongboDB服务:如何在SAP云平台的Cloud Foundry环境下添加新的Service 然后从这个链接下载SAP提供的例子程序。 1. 使用命令行 cf marketplace查看当前SAP云平台的MongoDB的版本号:在我使用的SAP云平台上是…

C#中将dll汇入exe,并加壳
< DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd> 1、合并file1.dll、file2.dll到destination.dll ILmerge /ndebug /target:dll /out:C:\destination.dll /log C:\file1.dll C:\file2.dll 2、合并file1.dll、file2.dll以及myApp.exe…
【AI】dlib中图像标注工具 imglab 详细说明
一、基本用法 imglab是一个在图像上标注矩形的工具。基本方法 1> 获取图片列表:./imglab -c mydataset.xml /tmp/images,/tmp/images为保存图像的文件夹 2> 标注每个图片:./imglab mydataset.xml,使用shift鼠标左键拖动来选…

最萌算法学习来啦,看不懂才怪!| 码书
普通程序员,不学算法,也可以成为大神吗?对不起,这个,绝对不可以。可是算法好难啊~~看两页书就想睡觉……所以就不学了吗?就一直当普通程序员吗?如果有一本算法书,看着很轻松……又有…