Hide Forgot
Description of problem: When ``rpm -q --changelog'' is called for a package that has more than one version installed, the resulting changelog seems to be that of the oldest version rather than the newest, where "oldest" means either "least recently installed" or "oldest e-v-r". (I am not sure which, but I could find out if you wish.) Version-Release number of selected component (if applicable): rpm-4.8.1-5.fc14.x86_64 How reproducible: When multiple kernels are installed Steps to Reproduce: 1. rpm -q kernel 2. rpm -q kernel --changelog | head -n 1 Actual results: kernel-2.6.35.12-90.fc14.x86_64 kernel-2.6.35.13-91.fc14.x86_64 kernel-2.6.35.13-92.fc14.x86_64 * Fri Apr 22 2011 Kyle McMartin <kmcmartin> 2.6.35.12-90 Expected results: kernel-2.6.35.12-90.fc14.x86_64 kernel-2.6.35.13-91.fc14.x86_64 kernel-2.6.35.13-92.fc14.x86_64 * Fri May 20 2011 Chuck Ebbert <cebbert> 2.6.35.13-92
Just like 'rpm -q kernel' returns all the installed kernel versions, 'rpm -q --changelog kernel' returns changelogs of all installed kernels, in whatever order they happen to be encountered in the rpmdb, which typically means oldest first. No bug here - if you want the changelog of a specific version, you need to specify the version, eg 'rpm -q --changelog kernel-2.6.35.13-92.fc14.x86_64'