在进行系统软件包升级之间或安装RPM软件包之后,总是想查看一下此次更新的软件包的changelog更新日志。
(1).Fedora 16 KDE 4.8带了一个软件包升级管理软件apper,点击升级的RPM包可以看到开发日志与更新日志
当前系统安装的软件还是以mplayer为例:
首先安装一个yum-plugin-changelog插件
(1).Fedora 16 KDE 4.8带了一个软件包升级管理软件apper,点击升级的RPM包可以看到开发日志与更新日志
(2).使用rpm命令查看当前已经安装或下载的RPM包的更新日志(changelog)![]()
当前系统安装的软件还是以mplayer为例:
首先查找到当前系统下安装的mplayer版本与名称查看本地的RPM包的changelog添加一个命令行选项-p
查看changelog点击(此处)折叠或打开
- [14:58:10 talen@BJB0300 backup ]$ rpm -qa |grep mplayer
- gnome-mplayer-common-1.0.6-1.fc16.i686
- mplayer-common-1.0-0.130.20110925svn.fc16.i686
- mplayer-1.0-0.130.20110925svn.fc16.i686
- gnome-mplayer-minimal-1.0.6-1.fc16.i686
- kmplayer-0.11.3c-1.fc16.i686
rpm -qi mplayer-1.0-0.130.20110925svn.fc16.i686 --changelog
点击(此处)折叠或打开
- [14:58:25 talen@BJB0300 backup ]$ rpm -qi mplayer-1.0-0.130.20110925svn.fc16.i686 --changelog
- Name : mplayer
- Version : 1.0
- Release : 0.130.20110925svn.fc16
- Architecture: i686
- Install Date: 2012年04月21日 星期六 18时28分05秒
- Group : Unspecified
- Size : 3460328
- License : GPLv3+
- Signature : RSA/SHA256, 2012年03月02日 星期五 06时01分08秒, Key ID 657c3396adf25d9c
- Source RPM : mplayer-1.0-0.130.20110925svn.fc16.src.rpm
- Build Date : 2012年03月01日 星期四 15时36分50秒
- Build Host : builder1.ovh.rpmfusion.lan
- Relocations : (not relocatable)
- Packager : http://nonfree.rpmfusion.org/>
- Vendor : RPM Fusion
- URL : http://www.mplayerhq.hu/
- Summary : Movie player playing most video formats and DVDs
- Description :
- MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
- VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM,
- RoQ, and PVA files. You can also use it to watch VCDs, SVCDs, DVDs,
- 3ivx, RealMedia, and DivX movies.
- It supports a wide range of output drivers including X11, XVideo, DGA,
- OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice
- antialiased shaded subtitles and OSD.
- Non-default rpmbuild options:
- --with samba: Enable Samba (smb://) support
- --with xmms: Enable XMMS input plugin support
- --without amr: Disable AMR support
- --with faac: Enable FAAC support
- --with libmad: Enable libmad support
- --with openal: Enable OpenAL support
- --with jack: Enable JACK support
- --with arts: Enable aRts support
- --with esound: Enable EsounD support
- --with dga: Enable DGA support
- --with directfb:Enable DirectFB support
- --with svgalib: Enable SVGAlib support
- --with nemesi: Enable libnemesi RTSP support
- * 二 2月 28 2012 Julian Sikorski belegdol@fedoraproject.org> - 1.0-0.130.20110925svn
- - 20110925 snapshot
- - Fixed audio streams switching using a patch from SVN (RPM Fusion bug #2032)
- * 二 2月 28 2012 Julian Sikorski belegdol@fedoraproject.org> - 1.0-0.129.20110816svn
- - Added libbs2b-devel to BuildRequires (RPM Fusion bug #2157)
- - Fixed --with directfb (RPM Fusion bug #2141)
- ......省略多行
(3).yum 更新系统或RPM包前,看看都发生了些什么?点击(此处)折叠或打开
- [15:04:47 talen@BJB0300 ~ ]$ rpm -qpi --changelog ./backup/rpm/rpm/adobe-release-i386-1.0-1.noarch.rpm
- Name : adobe-release-i386
- Version : 1.0
- Release : 1
- Architecture: noarch
- Install Date: (not installed)
- Group : System Environment/Base
- Size : 1905
- License : BSD
- Signature : DSA/SHA1, 2008年07月16日 星期三 22时20分47秒, Key ID 3a69bd24f6777c67
- Source RPM : adobe-release-i386-1.0-1.src.rpm
- Build Date : 2007年07月26日 星期四 06时52分20秒
- Build Host : mtilburg-rh4.macromedia.com
- Relocations : (not relocatable)
- Packager : Adobe Systems Inc.
- Vendor : Adobe Systems Inc.
- URL : http://linuxdownload.adobe.com/
- Summary : linux.adobe.com Repository Configuration
- Description :
- linuxdownload.adobe.com repository contains RPM packages of Adobe Linux Software
- * 二 7月 24 2007 Michael Tilburg mtilburg@adobe.com> - 1.0-1
- - change to i386 so not to confuse x86_64 users
- * 二 12月 19 2006 Warren Togami warren@togami.com> - 1.0-0
- - initial package
首先安装一个yum-plugin-changelog插件
此时yum 的帮助中会多出一个选项点击(此处)折叠或打开
- [15:07:36 talen@BJB0300 ~ ]$ sudo yum install yum-plugin-changelog
- 已加载插件:axelget, fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves
- No metadata available for adobe-linux-i386
- No metadata available for fedora
- No metadata available for rpmfusion-free
- No metadata available for rpmfusion-free-updates
- No metadata available for rpmfusion-nonfree
- No metadata available for rpmfusion-nonfree-updates
- No metadata available for updates
- Finish Download MetaData of Enabled Repo
- Loading mirror speeds from cached hostfile
- * fedora: mirrors.163.com
- * rpmfusion-free: mirrors.163.com
- * rpmfusion-free-updates: mirrors.163.com
- * rpmfusion-nonfree: mirrors.163.com
- * rpmfusion-nonfree-updates: mirrors.163.com
- * updates: ftp.riken.jp
- 解决依赖关系
- --> 执行事务检查
- ---> 软件包 yum-plugin-changelog.noarch.0.1.1.31-2.fc16 将被 安装
- --> 处理依赖关系 python-dateutil,它被软件包 yum-plugin-changelog-1.1.31-2.fc16.noarch 需要
- --> 执行事务检查
- ---> 软件包 python-dateutil.noarch.0.1.5-3.fc16 将被 安装
- --> 完成依赖关系计算
- 依赖关系解决
- ===============================================================================================================================================================================================================
- Package 架构 版本 仓库 大小
- ===============================================================================================================================================================================================================
- 正在安装:
- yum-plugin-changelog noarch 1.1.31-2.fc16 fedora 24 k
- 为依赖而安装:
- python-dateutil noarch 1.5-3.fc16 fedora 84 k
- 事务概要
- ===============================================================================================================================================================================================================
- 安装 1 软件包 (+1 Dependent package)
- 总下载量:109 k
- 安装大小:109 k
- 确定吗?[y/N]:y
- 下载软件包:
- Package fedora download size 24944 less than 300000,Skip
- Package fedora download size 86353 less than 300000,Skip
- (1/2): python-dateutil-1.5-3.fc16.noarch.rpm | 84 kB 00:00
- (2/2): yum-plugin-changelog-1.1.31-2.fc16.noarch.rpm | 24 kB 00:00
- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- 总计 225 kB/s | 109 kB 00:00
- 运行事务检查
- 执行事务测试
- 事务测试成功
- 执行事务
- 正在安装 : python-dateutil-1.5-3.fc16.noarch 1/2
- 正在安装 : yum-plugin-changelog-1.1.31-2.fc16.noarch 2/2
- Verifying : yum-plugin-changelog-1.1.31-2.fc16.noarch 1/2
- Verifying : python-dateutil-1.5-3.fc16.noarch 2/2
- 已安装:
- yum-plugin-changelog.noarch 0:1.1.31-2.fc16
- 作为依赖被安装:
- python-dateutil.noarch 0:1.5-3.fc16
- 完毕!
点击(此处)折叠或打开
- 插件选项:
- --changelog Show changelog delta of updated packages
查看未升级的mplayer的更新日志
点击(此处)折叠或打开
- [15:15:35 talen@BJB0300 ~ ]$ yum changelog mplayer
- 已加载插件:axelget, changelog, fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves
- No metadata available for adobe-linux-i386
- No metadata available for fedora
- No metadata available for rpmfusion-free
- No metadata available for rpmfusion-free-updates
- No metadata available for rpmfusion-nonfree
- No metadata available for rpmfusion-nonfree-updates
- No metadata available for updates
- Finish Download MetaData of Enabled Repo
- Loading mirror speeds from cached hostfile
- * fedora: ftp.sjtu.edu.cn
- * rpmfusion-free: ftp.sjtu.edu.cn
- * rpmfusion-free-updates: ftp.sjtu.edu.cn
- * rpmfusion-nonfree: ftp.sjtu.edu.cn
- * rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
- * updates: ftp.jaist.ac.jp
- Listing changelogs since 2012-05-16
- ==================== Available Packages ====================
- php-pear-File-Find-1.3.1-1.fc15.noarch fedora
- * Mon Oct 5 20:00:00 2020 Remi Collet Fedora@FamilleCollet.com> 1.3.1-1
- - upstream Version 1.3.1 (stable) - API 1.3.0 (stable)
- - package.xml is now V2
- - set timezone during build
- - run tests in %check
- * Fri May 22 20:00:00 2020 Remi Collet Fedora@FamilleCollet.com> 1.3.0-4
- - spec cleanup
- - rename File_Find.xml to php-pear-File-Find.xml
- changelog stats. 22585 pkgs, 22585 source pkgs, 2 changelogs