rpm命令如何打印调试信息?

时间:2021-11-06 01:27:08

问题描述

  今天在做rpm相关操作的时候,发现报错,并且还不知道如何入手来解决问题,就左查右查的问题还是没有解决,后来就想,rpm能否打印debug信息,然后也百度了,也没有找到,后来想我为啥不看看rpm的帮助文档呢,就看了下,然后发现通过 -vv参数就能实现这个功能。

示例

 [root@testvm03 log]# rpm -e -vv mysql-server-5.1.-.el6_8.x86_64   #备注:中划线后面是两个v,不是W
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:mpool:joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: read h# 323 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: read h# 350 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D: ========== --- mysql-server-5.1.73-8.el6_8 x86_64/linux 0x2
D: opening db index /var/lib/rpm/Requirename rdonly mode=0x0
D: ========== recording tsort relations
D: Requires: ha_archive.so.0()(64bit) YES (added provide)
D: Requires: ha_blackhole.so.0()(64bit) YES (added provide)
D: Requires: ha_example.so.0()(64bit) YES (added provide)
D: Requires: ha_federated.so.0()(64bit) YES (added provide)
D: Requires: ha_innodb_plugin.so.0()(64bit) YES (added provide)
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D: 0 0 0 0 1 -mysql-server-5.1.73-8.el6_8.x86_64
D: erasing packages
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm
D: opening db environment /var/lib/rpm cdb:mpool:joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: sanity checking 1 elements
D: running pre-transaction scripts
D: computing 99 file fingerprints
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
D: 0x0000fd00 4096 799876 374295 /
D: ========== +++ mysql-server-5.1.73-8.el6_8 x86_64-linux 0x2
D: read h# 350 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D: erase: mysql-server-5.1.73-8.el6_8 has 99 files, test = 0
D: opening db index /var/lib/rpm/Name create mode=0x42
D: opening db index /var/lib/rpm/Triggername create mode=0x42
D: erase: %preun(mysql-server-5.1.73-8.el6_8.x86_64) scriptlet start
D: erase: %preun(mysql-server-5.1.73-8.el6_8.x86_64) execv(/bin/sh) pid 2114
+ '[' 0 = 0 ']'
+ /sbin/service mysqld stop
+ /sbin/chkconfig --del mysqld
D: erase: waitpid(2114) rc 2114 status 0 secs 1.078
D: fini 040755 2 ( 600, 600) 4096 /var/run/mysqld
D: fini 100640 1 ( 600, 600) 1672 /var/log/mysqld.log backup
warning: /var/log/mysqld.log saved as /var/log/mysqld.log.rpmsave
D: fini 040755 4 ( 600, 600) 4096 /var/lib/mysql
D: erase rmdir of /var/lib/mysql failed: Directory not empty
D: fini 100644 1 ( 0, 0) 10376 /usr/share/mysql/mysql_test_data_timezone.sql
D: fini 100644 1 ( 0, 0) 2855 /usr/share/mysql/mysql_system_tables_data.sql
D: fini 100644 1 ( 0, 0) 17285 /usr/share/mysql/mysql_system_tables.sql
D: fini 100644 1 ( 0, 0) 45560 /usr/share/mysql/mysql_fix_privilege_tables.sql
D: fini 100644 1 ( 0, 0) 2441 /usr/share/mysql/my-small.cnf
D: fini 100644 1 ( 0, 0) 4673 /usr/share/mysql/my-medium.cnf
D: fini 100644 1 ( 0, 0) 4662 /usr/share/mysql/my-large.cnf
D: fini 100644 1 ( 0, 0) 19751 /usr/share/mysql/my-innodb-heavy-4G.cnf
D: fini 100644 1 ( 0, 0) 4688 /usr/share/mysql/my-huge.cnf
D: fini 100644 1 ( 0, 0) 641349 /usr/share/mysql/fill_help_tables.sql
D: fini 100644 1 ( 0, 0) 416238 /usr/share/mysql/errmsg.txt
D: fini 100644 1 ( 0, 0) 1626 /usr/share/mysql/config.small.ini
D: fini 100644 1 ( 0, 0) 2382 /usr/share/mysql/config.medium.ini
D: fini 100644 1 ( 0, 0) 4528 /usr/share/mysql/config.huge.ini
D: fini 100644 1 ( 0, 0) 12527 /usr/share/man/man8/mysqlmanager.8.gz
D: fini 100644 1 ( 0, 0) 1691 /usr/share/man/man8/mysqld.8.gz
D: fini 100644 1 ( 0, 0) 1448 /usr/share/man/man1/resolveip.1.gz
D: fini 100644 1 ( 0, 0) 1650 /usr/share/man/man1/resolve_stack_dump.1.gz
D: fini 100644 1 ( 0, 0) 1859 /usr/share/man/man1/replace.1.gz
D: fini 100644 1 ( 0, 0) 1838 /usr/share/man/man1/perror.1.gz
D: fini 100644 1 ( 0, 0) 4970 /usr/share/man/man1/mysqltest.1.gz
D: fini 100644 1 ( 0, 0) 416 /usr/share/man/man1/mysqlman.1.gz
D: fini 100644 1 ( 0, 0) 4548 /usr/share/man/man1/mysqlimport.1.gz
D: fini 100644 1 ( 0, 0) 3187 /usr/share/man/man1/mysqlhotcopy.1.gz
D: fini 100644 1 ( 0, 0) 2298 /usr/share/man/man1/mysqldumpslow.1.gz
D: fini 100644 1 ( 0, 0) 5381 /usr/share/man/man1/mysqld_safe.1.gz
D: fini 100644 1 ( 0, 0) 5592 /usr/share/man/man1/mysqld_multi.1.gz
D: fini 100644 1 ( 0, 0) 5695 /usr/share/man/man1/mysqlcheck.1.gz
D: fini 100644 1 ( 0, 0) 1609 /usr/share/man/man1/mysqlbug.1.gz
D: fini 100644 1 ( 0, 0) 12134 /usr/share/man/man1/mysqlbinlog.1.gz
D: fini 100644 1 ( 0, 0) 1654 /usr/share/man/man1/mysql_zap.1.gz
D: fini 100644 1 ( 0, 0) 3797 /usr/share/man/man1/mysql_upgrade.1.gz
D: fini 100644 1 ( 0, 0) 1833 /usr/share/man/man1/mysql_tzinfo_to_sql.1.gz
D: fini 100644 1 ( 0, 0) 1997 /usr/share/man/man1/mysql_setpermission.1.gz
D: fini 100644 1 ( 0, 0) 1543 /usr/share/man/man1/mysql_secure_installation.1.gz
D: fini 100644 1 ( 0, 0) 2752 /usr/share/man/man1/mysql_install_db.1.gz
D: fini 100644 1 ( 0, 0) 2165 /usr/share/man/man1/mysql_fix_privilege_tables.1.gz
D: fini 100644 1 ( 0, 0) 1426 /usr/share/man/man1/mysql_fix_extensions.1.gz
D: fini 100644 1 ( 0, 0) 2035 /usr/share/man/man1/mysql_convert_table_format.1.gz
D: fini 100644 1 ( 0, 0) 2181 /usr/share/man/man1/mysql.server.1.gz
D: fini 100644 1 ( 0, 0) 5443 /usr/share/man/man1/myisampack.1.gz
D: fini 100644 1 ( 0, 0) 1835 /usr/share/man/man1/myisamlog.1.gz
D: fini 100644 1 ( 0, 0) 13582 /usr/share/man/man1/myisamchk.1.gz
D: fini 100644 1 ( 0, 0) 2286 /usr/share/man/man1/myisam_ftdump.1.gz
D: fini 100644 1 ( 0, 0) 1508 /usr/share/man/man1/msql2mysql.1.gz
D: fini 100644 1 ( 0, 0) 1850 /usr/share/man/man1/innochecksum.1.gz
D: fini 100644 1 ( 0, 0) 2441 /usr/share/doc/mysql-server-5.1.73/my-small.cnf
D: fini 100644 1 ( 0, 0) 4673 /usr/share/doc/mysql-server-5.1.73/my-medium.cnf
D: fini 100644 1 ( 0, 0) 4662 /usr/share/doc/mysql-server-5.1.73/my-large.cnf
D: fini 100644 1 ( 0, 0) 19751 /usr/share/doc/mysql-server-5.1.73/my-innodb-heavy-4G.cnf
D: fini 100644 1 ( 0, 0) 4688 /usr/share/doc/mysql-server-5.1.73/my-huge.cnf
D: fini 040755 2 ( 0, 0) 4096 /usr/share/doc/mysql-server-5.1.73
D: fini 100755 1 ( 0, 0) 1569176 /usr/libexec/mysqlmanager
D: fini 100755 1 ( 0, 0) 7590416 /usr/libexec/mysqld
D: fini 100755 1 ( 0, 0) 1259136 /usr/lib64/mysql/plugin/ha_innodb_plugin.so.0.0.0
D: fini 120777 1 ( 0, 0) 25 /usr/lib64/mysql/plugin/ha_innodb_plugin.so.0
D: fini 120777 1 ( 0, 0) 25 /usr/lib64/mysql/plugin/ha_innodb_plugin.so
D: fini 100755 1 ( 0, 0) 58064 /usr/lib64/mysql/plugin/ha_federated.so.0.0.0
D: fini 120777 1 ( 0, 0) 21 /usr/lib64/mysql/plugin/ha_federated.so.0
D: fini 120777 1 ( 0, 0) 21 /usr/lib64/mysql/plugin/ha_federated.so
D: fini 100755 1 ( 0, 0) 33168 /usr/lib64/mysql/plugin/ha_example.so.0.0.0
D: fini 120777 1 ( 0, 0) 19 /usr/lib64/mysql/plugin/ha_example.so.0
D: fini 120777 1 ( 0, 0) 19 /usr/lib64/mysql/plugin/ha_example.so
D: fini 100755 1 ( 0, 0) 30288 /usr/lib64/mysql/plugin/ha_blackhole.so.0.0.0
D: fini 120777 1 ( 0, 0) 21 /usr/lib64/mysql/plugin/ha_blackhole.so.0
D: fini 120777 1 ( 0, 0) 21 /usr/lib64/mysql/plugin/ha_blackhole.so
D: fini 100755 1 ( 0, 0) 54048 /usr/lib64/mysql/plugin/ha_archive.so.0.0.0
D: fini 120777 1 ( 0, 0) 19 /usr/lib64/mysql/plugin/ha_archive.so.0
D: fini 120777 1 ( 0, 0) 19 /usr/lib64/mysql/plugin/ha_archive.so
D: fini 040755 2 ( 0, 0) 4096 /usr/lib64/mysql/plugin
D: fini 100755 1 ( 0, 0) 1365648 /usr/bin/resolveip
D: fini 100755 1 ( 0, 0) 1369792 /usr/bin/resolve_stack_dump
D: fini 100755 1 ( 0, 0) 1369712 /usr/bin/replace
D: fini 100755 1 ( 0, 0) 1370544 /usr/bin/perror
D: fini 100755 1 ( 0, 0) 187672 /usr/bin/mysqltest
D: fini 100755 1 ( 0, 0) 32477 /usr/bin/mysqlhotcopy
D: fini 100755 1 ( 0, 0) 7402 /usr/bin/mysqldumpslow
D: fini 100755 1 ( 0, 0) 18204 /usr/bin/mysqld_safe
D: fini 100755 1 ( 0, 0) 24495 /usr/bin/mysqld_multi
D: fini 100755 1 ( 0, 0) 4808 /usr/bin/mysqlbug
D: fini 100755 1 ( 0, 0) 3888 /usr/bin/mysql_zap
D: fini 100755 1 ( 0, 0) 68176 /usr/bin/mysql_upgrade
D: fini 100755 1 ( 0, 0) 1357920 /usr/bin/mysql_tzinfo_to_sql
D: fini 100755 1 ( 0, 0) 17473 /usr/bin/mysql_setpermission
D: fini 100755 1 ( 0, 0) 8198 /usr/bin/mysql_secure_installation
D: fini 100755 1 ( 0, 0) 14646 /usr/bin/mysql_install_db
D: fini 100755 1 ( 0, 0) 5834 /usr/bin/mysql_fix_privilege_tables
D: fini 100755 1 ( 0, 0) 1261 /usr/bin/mysql_fix_extensions
D: fini 100755 1 ( 0, 0) 4245 /usr/bin/mysql_convert_table_format
D: fini 100755 1 ( 0, 0) 1671864 /usr/bin/myisampack
D: fini 100755 1 ( 0, 0) 1639184 /usr/bin/myisamlog
D: fini 100755 1 ( 0, 0) 1756720 /usr/bin/myisamchk
D: fini 100755 1 ( 0, 0) 1642392 /usr/bin/myisam_ftdump
D: fini 100755 1 ( 0, 0) 10024 /usr/bin/innochecksum
D: fini 100755 1 ( 0, 0) 7026 /etc/rc.d/init.d/mysqld
D: fini 100644 1 ( 0, 0) 871 /etc/logrotate.d/mysqld
D: erase: %postun(mysql-server-5.1.73-8.el6_8.x86_64) scriptlet start
D: erase: %postun(mysql-server-5.1.73-8.el6_8.x86_64) execv(/bin/sh) pid 2155
+ '[' 0 -ge 1 ']'
D: erase: waitpid(2155) rc 2155 status 0 secs 0.002
D: --- h# 350 mysql-server-5.1.73-8.el6_8.x86_64
D: removing "mysql-server" from Name index.
D: removing 99 entries from Basenames index.
D: opening db index /var/lib/rpm/Group create mode=0x42
D: removing "Applications/Databases" from Group index.
D: opening db index /var/lib/rpm/Requirename create mode=0x42
D: removing 68 entries from Requirename index.
D: opening db index /var/lib/rpm/Providename create mode=0x42
D: removing 8 entries from Providename index.
D: opening db index /var/lib/rpm/Conflictname create mode=0x42
D: removing 1 entries from Conflictname index.
D: opening db index /var/lib/rpm/Dirnames create mode=0x42
D: removing 14 entries from Dirnames index.
D: opening db index /var/lib/rpm/Requireversion create mode=0x42
D: removing 68 entries from Requireversion index.
D: opening db index /var/lib/rpm/Provideversion create mode=0x42
D: removing 8 entries from Provideversion index.
D: opening db index /var/lib/rpm/Installtid create mode=0x42
D: removing 1 entries from Installtid index.
D: opening db index /var/lib/rpm/Sigmd5 create mode=0x42
D: removing 1 entries from Sigmd5 index.
D: opening db index /var/lib/rpm/Sha1header create mode=0x42
D: removing "216aec29bd69c731019b4def5cf20d01f47cd1e0" from Sha1header index.
D: opening db index /var/lib/rpm/Filedigests create mode=0x42
D: removing 99 entries from Filedigests index.
D: running post-transaction scripts
D: closed db index /var/lib/rpm/Filedigests
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Provideversion
D: closed db index /var/lib/rpm/Requireversion
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm

备注:这样,就能在出现执行命令报错的时候,将调试信息打印出来了,知道执行该命令时,都做了些什么事情。

文档创建时间:2019年3月8日15:08:18

rpm命令如何打印调试信息?的更多相关文章

  1. STM32M CUBE实现printf打印调试信息以及实现单字节接收

    在写单片机程序时我们一般喜欢使用printf来通过串口打印调试信息,但这个函数是不能够直接使用的.必须做点对库函数的修改. 具体project下载地址: http://download.csdn.ne ...

  2. debug.js在手机上打印调试信息

    在做移动端开发的时候大家应该都遇到过这么一个问题:如何在手机上打印调试信息? 在pc端我们通常会用console.log 或者 alert,但大家知道console.log在手机上是看不到打印信息的: ...

  3. NDK编程中如何在C文件中打印调试信息

      1,在Android.mk文件中加上 LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog LOCAL_PATH := $(call my-dir)include ...

  4. Android Studio 打印调试信息

    转自:https://www.2cto.com/kf/201611/569468.html 之前开发单片机软件还是上位机都习惯使用printf(),相信很多很会有和我一样的习惯.开始学习安卓了,当然也 ...

  5. VC++6.0 打印调试信息

    1.在MFC中加入TRACE语句 2.在TOOLS->MFC TRACER中选择 “ENABLE TRACING”点击OK 3.进行调试运行,GO(F5)(特别注意:不是执行‘!’以前之所以不能 ...

  6. QT+VS中使用qDebug()打印调试信息无法显示

    首先右键点击项目名称,找到最后一项属性 然后依次设置为如图所示即可 再次编译后,会弹出CMD窗口,出现qDebug的调试信息.

  7. Logcat打印调试信息

    Android Logcat调试中的V.D.I.W.E的分别代表什么? Log.v -- 黑色 -- verbose infoLog.d -- 蓝色 -- debug infoLog.i -- 绿色 ...

  8. VS IDE环境下,windows GUI(Qt MFC,win32)使用控制台实时打印调试信息

    在工程属性的页面下,点击Build Events,在Build Events下点击Post-Build Event. 然后再Command Line里面输入以下命令: editbin /SUBSYST ...

  9. [ios2]iphone编程中使用封装的NSLog来打印调试信息 【转】

    使用NSLog的一个风险是:它的运行会占用时间和设备资源. 简单而粗暴的解决方案是:在release前,将所有的NSLog注释掉.简单有效,但副作用是:下次你要调试时,又得将NSLog一个个取消注释. ...

随机推荐

  1. bzoj 3732 Network(最短路+倍增 | LCT)

    [题目链接] http://www.lydsy.com/JudgeOnline/problem.php?id=3732 [题意] 给定一个无向图,处理若干询问:uv路径上最长的边最小是多少? [思路一 ...

  2. mybatis根据property获取column

    mybatis根据property获取column mybatis根据类的属性获取xml文件中对应的column mybatis获取xml文件中property对应的column >>&g ...

  3. 搭建自己的SIPserver:开源sipserveropensips的搭建及终端TwInkle的使用

    先下载源代码: 这里我下载的是1.8.2,由于这个是眼下的最稳定版本号,(尽管已经有1.9及2.0了) http://opensips.org/pub/opensips/1.8.2/src/opens ...

  4. 从头开始学c++,补基础,补踏实

    在对c++一知半解的情况下,写c++程序是非常吃力的.对于半路出家写c++的我,写了几个颓废的程序后,再也没有勇气用现有的c++知识去写千疮百孔的程序.非常想写出<整洁的代码>中那样的代码 ...

  5. window7下statsvn统计代码量

    下载statsvn:http://www.statsvn.org/ 将下载后的statsvn.jar放到d:\svn目录下; 打开cmd窗口切换到需要统计代码的项目目录如:d:\project\web ...

  6. 利用HttpClient抓取话费详单等信息

    由于项目需要,需要获取授权用户的在运营商(中国移动.中国联通.中国电信)那里的个人信息.话费详单.月汇总账单信息(需要指出的是电信用户的个人信息无法从网上营业厅获取).抓取用户信息肯定是要模仿用户登录 ...

  7. 【C&num;】HTTP请求GET,POST(远程证书失效)

    HTTP定义了与服务器交互的不同方法,基本方法有GET,POST,PUT,DELETE,分别对于查,该,增,删.一般情况下我们只用到GET和POST,其他两种都也可以用GET和POST来实现,很多浏览 ...

  8. C&num;&colon; int 与 byte&lbrack;&rsqb; 互转

    public static int ToInt32(params byte[] v) { ; var len = v.Length; ) { len = ; } ; i < len; i++) ...

  9. 安装openssh

    在推进ansible用于配置管理与自动部署,其中一个很困扰的问题是创建ssh通道很慢,虽然ansible在同一个task里面是并行的控制多台受控端.但是每一个task都需要和受控端创建ssh通道,非常 ...

  10. 关于控制台程序下使用mfc库中的函数时断言

    例如: TCHAR path[8192]; int len = getmodulefilename(afxgetinstancehandle(),path,8192);//会出现断言 如果没有选择支持 ...