# How to install an appstream package from previous release

**URL:** <https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259>\
**Category:** Rocky Linux Help & Support\
**Created:** [September 15, 2022, 4:56pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259 "2022-09-15T16:56:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmcnally](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jmcnally/32/1304_2.png) [@jmcnally](https://forums.rockylinux.org/u/jmcnally)\
**Post date:** [September 15, 2022, 4:56pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/1 "2022-09-15T16:56:21Z")

</div>

Dear Rocky Experts,

I am trying to install a previous version of the “qemu-kvm” package on a Rocky 8.6 system. However, the version I want is no longer listed on the appstream repo, even with the “–showduplicates” option.

Here’s what I see on my host after updating all packages from Rocky 8.5 to 8.6:

```auto
# dnf --showduplicates list qemu-kvm
Installed Packages
qemu-kvm.x86_64 15:6.2.0-11.module+el8.6.0+1000+18e3b59f.5 @appstream
Available Packages
qemu-kvm.x86_64 15:6.2.0-11.module+el8.6.0+847+b490afdd appstream 
qemu-kvm.x86_64 15:6.2.0-11.module+el8.6.0+998+252a5635.2 appstream 
qemu-kvm.x86_64 15:6.2.0-11.module+el8.6.0+1000+18e3b59f.5 appstream 

```

Looking on another 8.5 system (not yet updated) here’s what shows:

```auto
#dnf list qemu-kvm
Installed Packages
qemu-kvm.x86_64 15:4.2.0-59.module+el8.5.0+670+c4aa478c @appstream
Available Packages
qemu-kvm.x86_64 15:6.2.0-11.module+el8.6.0+1000+18e3b59f.5 appstream 

```

I need to get back to version 15:4.2.0 of qemu-kvm, due to an unresolved bug. How do I make this version available on my Rocky 8.6 system?

Note: I tried modifying the Appstream repo.conf file with “baseurl=[http://download.rockylinux.org/vault/rocky/8.5/AppStream/$basearch/os/](http://download.rockylinux.org/vault/rocky/8.5/AppStream/%24basearch/os/)” but no dice.

Any assistance would be greatly appreciated.

-jm

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [September 15, 2022, 5:19pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/2 "2022-09-15T17:19:17Z")

</div>

> [@jmcnally](#):
>
> Note: I tried modifying the Appstream repo.conf file with “baseurl=[http://download.rockylinux.org/vault/rocky/8.5/AppStream/$basearch/os/](http://download.rockylinux.org/vault/rocky/8.5/AppStream/%24basearch/os/)” but no dice.

Did you hash out the mirrorlist line? This must not be enabled - just making sure in case. Also, you might want to do:

```auto
dnf clean all

```

and then see if it will pick up the vault url. Not sure if you tried that?

---

<div class="post-metadata">

**Author:** ![jmcnally](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jmcnally/32/1304_2.png) [@jmcnally](https://forums.rockylinux.org/u/jmcnally)\
**Post date:** [September 15, 2022, 5:53pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/3 "2022-09-15T17:53:56Z")

</div>

Aha!

That did the trick! The mirrorlist _was_ still enabled. After fixing that, and a quick “dnf clean all”, I can now see the v4.2.0 package that I need. I installed v4.2.0-60 and now I see this:

```auto
# /usr/libexec/qemu-kvm -version
QEMU emulator version 4.2.0 (qemu-kvm-4.2.0-60.module+el8.5.0+772+743bb337.2)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

```

NOTE: I _did_ have to reboot before removing the v6.2 package. Even though ps showed no “qemu-kvm” processes running, “dnf remove qemu-kvm” completed without error, but the files were stil there. Only after rebooting and re-running “remove” were the files actually gone. Maybe some file locks…

Weird, huh?

Anyway, thanks for your help.

-jm

---

<div class="post-metadata">

**Author:** ![neil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/neil/32/34_2.png) [@neil](https://forums.rockylinux.org/u/neil)\
**Post date:** [September 16, 2022, 4:07pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/4 "2022-09-16T16:07:56Z")

</div>

For what it’s worth, the mirrorlist does also support older versions to be served.

In the mirrorlist line, change the repo name (e.g. AppStream-8) to something like “vault-AppStream-8.5”

See below:

[https://mirrors.rockylinux.org/mirrorlist?repo=vault-AppStream-8.5&arch=x86\_64](https://mirrors.rockylinux.org/mirrorlist?repo=vault-AppStream-8.5&arch=x86_64)

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [September 17, 2022, 1:40pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/5 "2022-09-17T13:40:35Z")

</div>

If you edit the \*.repo files, they might not get dnf updated, only because the package will see them as dirty, and create something like \*.rpmnew.

---

<div class="post-metadata">

**Author:** ![jmcnally](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jmcnally/32/1304_2.png) [@jmcnally](https://forums.rockylinux.org/u/jmcnally)\
**Post date:** [September 20, 2022, 5:03pm UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/6 "2022-09-20T17:03:10Z")

</div>

gerry,

Agreed. I don’t plan on leaving the “hacked” appstream repo def in place for long – just until I have the old packages I need. Then I will restore the default Rocky-AppStream.repo.

However, I am adding this line, to prevent qemu-kvm (and its dependencies) from updating, until I resolve the issue I am having with v6.2.0:

```auto
exclude=*qemu* edk2-ovmf seabios-bin seavgabios-bin sgabios-bin usbredir

```

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:39am UTC](https://forums.rockylinux.org/t/how-to-install-an-appstream-package-from-previous-release/7259/7 "2023-08-25T03:39:40Z")

</div>

Closed on August 25, 2023, 3:39am UTC


