linux fedora查看RPM包更新日志,yum查看rpm包changelog插件

    在进行系统软件包升级之间或安装RPM软件包之后,总是想查看一下此次更新的软件包的changelog更新日志。
(1).Fedora 16 KDE 4.8带了一个软件包升级管理软件apper,点击升级的RPM包可以看到开发日志与更新日志
linux fedora查看RPM包更新日志,yum查看rpm包changelog插件
(2).使用rpm命令查看当前已经安装或下载的RPM包的更新日志(changelog)
当前系统安装的软件还是以mplayer为例:
首先查找到当前系统下安装的mplayer版本与名称

点击(此处)折叠或打开

  1. [14:58:10 talen@BJB0300 backup ]$ rpm -qa |grep mplayer
  2. gnome-mplayer-common-1.0.6-1.fc16.i686
  3. mplayer-common-1.0-0.130.20110925svn.fc16.i686
  4. mplayer-1.0-0.130.20110925svn.fc16.i686
  5. gnome-mplayer-minimal-1.0.6-1.fc16.i686
  6. kmplayer-0.11.3c-1.fc16.i686
查看changelog
rpm -qi mplayer-1.0-0.130.20110925svn.fc16.i686 --changelog

点击(此处)折叠或打开

  1. [14:58:25 talen@BJB0300 backup ]$ rpm -qi mplayer-1.0-0.130.20110925svn.fc16.i686 --changelog
  2. Name : mplayer
  3. Version : 1.0
  4. Release : 0.130.20110925svn.fc16
  5. Architecture: i686
  6. Install Date: 2012年04月21日 星期六 18时28分05秒
  7. Group : Unspecified
  8. Size : 3460328
  9. License : GPLv3+
  10. Signature : RSA/SHA256, 2012年03月02日 星期五 06时01分08秒, Key ID 657c3396adf25d9c
  11. Source RPM : mplayer-1.0-0.130.20110925svn.fc16.src.rpm
  12. Build Date : 2012年03月01日 星期四 15时36分50秒
  13. Build Host : builder1.ovh.rpmfusion.lan
  14. Relocations : (not relocatable)
  15. Packager : http://nonfree.rpmfusion.org/>
  16. Vendor : RPM Fusion
  17. URL : http://www.mplayerhq.hu/
  18. Summary : Movie player playing most video formats and DVDs
  19. Description :
  20. MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
  21. VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM,
  22. RoQ, and PVA files. You can also use it to watch VCDs, SVCDs, DVDs,
  23. 3ivx, RealMedia, and DivX movies.
  24. It supports a wide range of output drivers including X11, XVideo, DGA,
  25. OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice
  26. antialiased shaded subtitles and OSD.
  27. Non-default rpmbuild options:
  28. --with samba: Enable Samba (smb://) support
  29. --with xmms: Enable XMMS input plugin support
  30. --without amr: Disable AMR support
  31. --with faac: Enable FAAC support
  32. --with libmad: Enable libmad support
  33. --with openal: Enable OpenAL support
  34. --with jack: Enable JACK support
  35. --with arts: Enable aRts support
  36. --with esound: Enable EsounD support
  37. --with dga: Enable DGA support
  38. --with directfb:Enable DirectFB support
  39. --with svgalib: Enable SVGAlib support
  40. --with nemesi: Enable libnemesi RTSP support
  41. * 二 2月 28 2012 Julian Sikorski belegdol@fedoraproject.org> - 1.0-0.130.20110925svn
  42. - 20110925 snapshot
  43. - Fixed audio streams switching using a patch from SVN (RPM Fusion bug #2032)

  44. * 二 2月 28 2012 Julian Sikorski belegdol@fedoraproject.org> - 1.0-0.129.20110816svn
  45. - Added libbs2b-devel to BuildRequires (RPM Fusion bug #2157)
  46. - Fixed --with directfb (RPM Fusion bug #2141)
  47. ......省略多行
查看本地的RPM包的changelog添加一个命令行选项-p

点击(此处)折叠或打开

  1. [15:04:47 talen@BJB0300 ~ ]$ rpm -qpi --changelog ./backup/rpm/rpm/adobe-release-i386-1.0-1.noarch.rpm
  2. Name : adobe-release-i386
  3. Version : 1.0
  4. Release : 1
  5. Architecture: noarch
  6. Install Date: (not installed)
  7. Group : System Environment/Base
  8. Size : 1905
  9. License : BSD
  10. Signature : DSA/SHA1, 2008年07月16日 星期三 22时20分47秒, Key ID 3a69bd24f6777c67
  11. Source RPM : adobe-release-i386-1.0-1.src.rpm
  12. Build Date : 2007年07月26日 星期四 06时52分20秒
  13. Build Host : mtilburg-rh4.macromedia.com
  14. Relocations : (not relocatable)
  15. Packager : Adobe Systems Inc.
  16. Vendor : Adobe Systems Inc.
  17. URL : http://linuxdownload.adobe.com/
  18. Summary : linux.adobe.com Repository Configuration
  19. Description :
  20. linuxdownload.adobe.com repository contains RPM packages of Adobe Linux Software
  21. * 二 7月 24 2007 Michael Tilburg mtilburg@adobe.com> - 1.0-1
  22. - change to i386 so not to confuse x86_64 users

  23. * 二 12月 19 2006 Warren Togami warren@togami.com> - 1.0-0
  24. - initial package
(3).yum 更新系统或RPM包前,看看都发生了些什么?
首先安装一个yum-plugin-changelog插件

点击(此处)折叠或打开

  1. [15:07:36 talen@BJB0300 ~ ]$ sudo yum install yum-plugin-changelog
  2. 已加载插件:axelget, fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves
  3. No metadata available for adobe-linux-i386
  4. No metadata available for fedora
  5. No metadata available for rpmfusion-free
  6. No metadata available for rpmfusion-free-updates
  7. No metadata available for rpmfusion-nonfree
  8. No metadata available for rpmfusion-nonfree-updates
  9. No metadata available for updates
  10. Finish Download MetaData of Enabled Repo
  11. Loading mirror speeds from cached hostfile
  12.  * fedora: mirrors.163.com
  13.  * rpmfusion-free: mirrors.163.com
  14.  * rpmfusion-free-updates: mirrors.163.com
  15.  * rpmfusion-nonfree: mirrors.163.com
  16.  * rpmfusion-nonfree-updates: mirrors.163.com
  17.  * updates: ftp.riken.jp
  18. 解决依赖关系
  19. --> 执行事务检查
  20. ---> 软件包 yum-plugin-changelog.noarch.0.1.1.31-2.fc16 将被 安装
  21. --> 处理依赖关系 python-dateutil,它被软件包 yum-plugin-changelog-1.1.31-2.fc16.noarch 需要
  22. --> 执行事务检查
  23. ---> 软件包 python-dateutil.noarch.0.1.5-3.fc16 将被 安装
  24. --> 完成依赖关系计算

  25. 依赖关系解决

  26. ===============================================================================================================================================================================================================
  27.  Package 架构 版本 仓库 大小
  28. ===============================================================================================================================================================================================================
  29. 正在安装:
  30.  yum-plugin-changelog noarch 1.1.31-2.fc16 fedora 24 k
  31. 为依赖而安装:
  32.  python-dateutil noarch 1.5-3.fc16 fedora 84 k

  33. 事务概要
  34. ===============================================================================================================================================================================================================
  35. 安装 1 软件包 (+1 Dependent package)

  36. 总下载量:109 k
  37. 安装大小:109 k
  38. 确定吗?[y/N]:y
  39. 下载软件包:
  40. Package fedora download size 24944 less than 300000,Skip
  41. Package fedora download size 86353 less than 300000,Skip
  42. (1/2): python-dateutil-1.5-3.fc16.noarch.rpm | 84 kB 00:00
  43. (2/2): yum-plugin-changelog-1.1.31-2.fc16.noarch.rpm | 24 kB 00:00
  44. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  45. 总计 225 kB/s | 109 kB 00:00
  46. 运行事务检查
  47. 执行事务测试
  48. 事务测试成功
  49. 执行事务
  50.   正在安装 : python-dateutil-1.5-3.fc16.noarch 1/2
  51.   正在安装 : yum-plugin-changelog-1.1.31-2.fc16.noarch 2/2
  52.   Verifying : yum-plugin-changelog-1.1.31-2.fc16.noarch 1/2
  53.   Verifying : python-dateutil-1.5-3.fc16.noarch 2/2

  54. 已安装:
  55.   yum-plugin-changelog.noarch 0:1.1.31-2.fc16

  56. 作为依赖被安装:
  57.   python-dateutil.noarch 0:1.5-3.fc16

  58. 完毕!
此时yum 的帮助中会多出一个选项

点击(此处)折叠或打开

  1. 插件选项:
  2.     --changelog Show changelog delta of updated packages

查看未升级的mplayer的更新日志

点击(此处)折叠或打开

  1. [15:15:35 talen@BJB0300 ~ ]$ yum changelog mplayer
  2. 已加载插件:axelget, changelog, fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves
  3. No metadata available for adobe-linux-i386
  4. No metadata available for fedora
  5. No metadata available for rpmfusion-free
  6. No metadata available for rpmfusion-free-updates
  7. No metadata available for rpmfusion-nonfree
  8. No metadata available for rpmfusion-nonfree-updates
  9. No metadata available for updates
  10. Finish Download MetaData of Enabled Repo
  11. Loading mirror speeds from cached hostfile
  12.  * fedora: ftp.sjtu.edu.cn
  13.  * rpmfusion-free: ftp.sjtu.edu.cn
  14.  * rpmfusion-free-updates: ftp.sjtu.edu.cn
  15.  * rpmfusion-nonfree: ftp.sjtu.edu.cn
  16.  * rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
  17.  * updates: ftp.jaist.ac.jp

  18. Listing changelogs since 2012-05-16

  19. ==================== Available Packages ====================
  20. php-pear-File-Find-1.3.1-1.fc15.noarch fedora
  21. * Mon Oct 5 20:00:00 2020 Remi Collet Fedora@FamilleCollet.com> 1.3.1-1
  22. - upstream Version 1.3.1 (stable) - API 1.3.0 (stable)
  23. - package.xml is now V2
  24. - set timezone during build
  25. - run tests in %check

  26. * Fri May 22 20:00:00 2020 Remi Collet Fedora@FamilleCollet.com> 1.3.0-4
  27. - spec cleanup
  28. - rename File_Find.xml to php-pear-File-Find.xml

  29. changelog stats. 22585 pkgs, 22585 source pkgs, 2 changelogs







上一篇:云安全2.0是炒作还是技术革新


下一篇:spring boot 配置启动后执行sql, 中文乱码