Do fedora only keep latest package version on repository?
When i tried undo/downgrade, it not working. I also reported on https://bugzilla.redhat.com/show_bug.cgi?id=1911753 which I assume maybe thus required older packager version not available
are there is someway to see verbose/debug of `dnf history` ? I tried with `-v` but nothing much
$ sudo dnf history undo last -v Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync DNF version: 4.5.2 cachedir: /var/cache/dnf User-Agent: constructed: 'libdnf (Fedora 33; generic; Linux.x86_64)' repo: using cache for: fedora-cisco-openh264 fedora-cisco-openh264: using metadata from Wed 26 Aug 2020 03:10:34 AM +08. repo: using cache for: updates updates: using metadata from Wed 30 Dec 2020 09:28:11 AM +08. repo: using cache for: fedora fedora: using metadata from Tue 20 Oct 2020 07:27:19 AM +08. Last metadata expiration check: 0:47:53 ago on Thu 31 Dec 2020 09:18:49 AM +08. Completion plugin: Generating completion cache... Undoing transaction 15, from Thu 31 Dec 2020 09:31:29 AM +08 Upgrade icecat-78.6.0-2.rh1.fc33.x86_64 @updates Upgraded icecat-78.5.0-2.rh2.fc33.x86_64 @@System No package icecat-78.5.0-2.rh2.fc33.x86_64 available. Error: no package matched
On Thu, Dec 31, 2020 at 10:15:27AM +0800, Robbi Nespu wrote:
Do fedora only keep latest package version on repository?
Yes, generally.
You can get older packages from Koji, our build system, either by browsing the web interface https://koji.fedoraproject.org/koji/packageinfo?packageID=19055 or by using the `koji download-build` command.
On 12/30/20 6:15 PM, Robbi Nespu wrote:
are there is someway to see verbose/debug of `dnf history` ? I tried with `-v` but nothing much
# dnf history list ID | Command line | Date and time | Action(s) | Altered -------------------------------------------------------------------------------------------------------------------------------------------------------------- 308 | upgrade firefox | 2020-12-22 20:00 | Upgrade | 11 307 | upgrade discord | 2020-12-21 17:28 | Upgrade | 1 306 | install bcc-tools | 2020-12-06 22:00 | Install | 5 305 | install hdparm | 2020-12-02 23:05 | Install | 1
# dnf history info 308 Transaction ID : 308 Begin time : Tue 22 Dec 2020 08:00:37 PM PST Begin rpmdb : 4729:6558da3dc52d9b2bc70074fe0d9e30d3c91c2f5e End time : Tue 22 Dec 2020 08:00:48 PM PST (11 seconds) End rpmdb : 4729:498b70f56df409c6d591a4fd90d5b54a02636fb1 User : Me <samuel> Return-Code : Success Releasever : 33 Command Line : upgrade firefox Comment : Packages Altered: Upgrade firefox-84.0-6.fc33.x86_64 @updates Upgraded firefox-82.0.2-1.fc33.x86_64 @@System Upgrade nss-3.59.0-3.fc33.i686 @updates Upgraded nss-3.58.0-3.fc33.i686 @@System Upgrade nss-3.59.0-3.fc33.x86_64 @updates Upgraded nss-3.58.0-3.fc33.x86_64 @@System Upgrade nss-softokn-3.59.0-3.fc33.i686 @updates Upgraded nss-softokn-3.58.0-3.fc33.i686 @@System Upgrade nss-softokn-3.59.0-3.fc33.x86_64 @updates Upgraded nss-softokn-3.58.0-3.fc33.x86_64 @@System Upgrade nss-softokn-freebl-3.59.0-3.fc33.i686 @updates Upgraded nss-softokn-freebl-3.58.0-3.fc33.i686 @@System Upgrade nss-softokn-freebl-3.59.0-3.fc33.x86_64 @updates Upgraded nss-softokn-freebl-3.58.0-3.fc33.x86_64 @@System Upgrade nss-sysinit-3.59.0-3.fc33.x86_64 @updates Upgraded nss-sysinit-3.58.0-3.fc33.x86_64 @@System Upgrade nss-tools-3.59.0-3.fc33.x86_64 @updates Upgraded nss-tools-3.58.0-3.fc33.x86_64 @@System Upgrade nss-util-3.59.0-3.fc33.i686 @updates Upgraded nss-util-3.58.0-3.fc33.i686 @@System Upgrade nss-util-3.59.0-3.fc33.x86_64 @updates Upgraded nss-util-3.58.0-3.fc33.x86_64 @@System
Hello Samuel, I don't get what you want show to me.
On 31/12/2020 1:20 pm, Samuel Sieb wrote:
On 12/30/20 6:15 PM, Robbi Nespu wrote:
# dnf history list ID | Command line | Date and time | Action(s) | Altered
308 | upgrade firefox | 2020-12-22 20:00 | Upgrade | 11 307 | upgrade discord | 2020-12-21 17:28 | Upgrade | 1 306 | install bcc-tools | 2020-12-06 22:00 | Install | 5 305 | install hdparm | 2020-12-02 23:05 | Install | 1
# dnf history info 308 Transaction ID : 308 Begin time : Tue 22 Dec 2020 08:00:37 PM PST Begin rpmdb : 4729:6558da3dc52d9b2bc70074fe0d9e30d3c91c2f5e End time : Tue 22 Dec 2020 08:00:48 PM PST (11 seconds) End rpmdb : 4729:498b70f56df409c6d591a4fd90d5b54a02636fb1 User : Me <samuel> Return-Code : Success Releasever : 33 Command Line : upgrade firefox Comment : Packages Altered: Upgrade firefox-84.0-6.fc33.x86_64 @updates Upgraded firefox-82.0.2-1.fc33.x86_64 @@System Upgrade nss-3.59.0-3.fc33.i686 @updates Upgraded nss-3.58.0-3.fc33.i686 @@System Upgrade nss-3.59.0-3.fc33.x86_64 @updates Upgraded nss-3.58.0-3.fc33.x86_64 @@System Upgrade nss-softokn-3.59.0-3.fc33.i686 @updates Upgraded nss-softokn-3.58.0-3.fc33.i686 @@System Upgrade nss-softokn-3.59.0-3.fc33.x86_64 @updates Upgraded nss-softokn-3.58.0-3.fc33.x86_64 @@System Upgrade nss-softokn-freebl-3.59.0-3.fc33.i686 @updates Upgraded nss-softokn-freebl-3.58.0-3.fc33.i686 @@System Upgrade nss-softokn-freebl-3.59.0-3.fc33.x86_64 @updates Upgraded nss-softokn-freebl-3.58.0-3.fc33.x86_64 @@System Upgrade nss-sysinit-3.59.0-3.fc33.x86_64 @updates Upgraded nss-sysinit-3.58.0-3.fc33.x86_64 @@System Upgrade nss-tools-3.59.0-3.fc33.x86_64 @updates Upgraded nss-tools-3.58.0-3.fc33.x86_64 @@System Upgrade nss-util-3.59.0-3.fc33.i686 @updates Upgraded nss-util-3.58.0-3.fc33.i686 @@System Upgrade nss-util-3.59.0-3.fc33.x86_64 @updates Upgraded nss-util-3.58.0-3.fc33.x86_64 @@System
On Thursday, December 31, 2020 8:35:17 AM WET Robbi Nespu wrote:
Hello Samuel, I don't get what you want show to me.
Although I am not Samuel I expected this to be related to your initial message:
are there is someway to see verbose/debug of `dnf history` ? I tried with `-v` but nothing much.
On Wed, Dec 30, 2020, at 9:15 PM, Robbi Nespu wrote:
Do fedora only keep latest package version on repository?
When i tried undo/downgrade, it not working. I also reported on https://bugzilla.redhat.com/show_bug.cgi?id=1911753 which I assume maybe thus required older packager version not available
To make downgrade work, you can install the fedora-repos-archive package and pass --enablerepo=fedora-archive when you attempt the downgrade/undo.
are there is someway to see verbose/debug of `dnf history` ? I tried with `-v` but nothing much
yum history info last
Might help?
V/r, James Cassell
On Thu, Dec 31, 2020 at 12:20:35PM -0500, James Cassell wrote:
To make downgrade work, you can install the fedora-repos-archive package and pass --enablerepo=fedora-archive when you attempt the downgrade/undo.
Huh. Learn something every day. Thanks :)
Oh that was nice, i never know such repo are available. Thanks James Cassell for sharing
On 1/1/2021 1:20 am, James Cassell wrote:
To make downgrade work, you can install the fedora-repos-archive package and pass --enablerepo=fedora-archive when you attempt the downgrade/undo.
Installed and the repo (fedora-repos-archive) are enabled by default
$ grep "enabled" /etc/yum.repos.d/fedora-updates-archive.repo enabled=1
$ dnf history info 15 Transaction ID : 15 Begin time : Thu 31 Dec 2020 09:31:29 AM +08 Begin rpmdb : 1448:392d27370be7608526fcef0475d4bee78ebffc22 End time : Thu 31 Dec 2020 09:31:47 AM +08 (18 seconds) End rpmdb : 1448:46959b33ef3c9604fe74ec6a98b5d13771f73f3b User : robbi <robbi> Return-Code : Success Releasever : 33 Command Line : update icecat Comment : Packages Altered: Upgrade icecat-78.6.0-2.rh1.fc33.x86_64 @updates Upgraded icecat-78.5.0-2.rh2.fc33.x86_64 @@System
$ dnf history undo 15 Fedora 33 - x86_64 - Updates Fedora 33 - x86_64 - Updates Fedora 33 - x86_64 - Updates Archive Last metadata expiration check: 0:00:15 ago on Fri 01 Jan 2021 01:41:18 PM +08. Undoing transaction 15, from Thu 31 Dec 2020 09:31:29 AM +08 Upgrade icecat-78.6.0-2.rh1.fc33.x86_64 @updates Upgraded icecat-78.5.0-2.rh2.fc33.x86_64 @@System Dependencies resolved. =========================================================================================================== Package Architecture Version =========================================================================================================== Downgrading: icecat x86_64 78.5.0-2.rh2.fc33
Transaction Summary =========================================================================================================== Downgrade 1 Package
Total download size: 95 M Is this ok [y/N]:
Yup, this is what i expected and looking for,Thank you! Happy new years everyone!
Interesting. In 2016, when I filed
Bug 1397174 dnf history undo doesn't work even with keepcache=1 * https://bugzilla.redhat.com/show_bug.cgi?id=1397174
the recommended workaround was to install the 'local' dnf plugin (package: python3-dnf-plugin-local).
Installing the local plugin is still a good solution. It will make undoing transactions work even for 3rd party repos.
* The title of that bug report was subsequently changed.
Robin