# How to query and install the latest package

**URL:** <https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849>\
**Category:** Rocky Linux Help & Support\
**Created:** [November 14, 2022, 6:25am UTC](https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849 "2022-11-14T06:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miccc](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@miccc](https://forums.rockylinux.org/u/miccc)\
**Post date:** [November 14, 2022, 6:25am UTC](https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849/1 "2022-11-14T06:25:06Z")

</div>

Hi! Recently I want to install a package on rockylinux, e.g. nodejs, I found there are several versions available on [download.rockylinux.org](http://download.rockylinux.org).

But when I use `dnf` to search the package on my host, it reports only one version, that is,

`dnf search nodejs` ----\> `nodejs-10.24.0......`

In fact there are other version like `12.22`, `14.20`, `16.17` on [http://download.rockylinux.org/pub/rocky/8/AppStream/x86\_64/os/Packages/n/](http://download.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/n/), I **wonder how** to install the other version of the interesting package, something like `dnf install nodejs-16.17....`?

---

<div class="post-metadata">

**Author:** ![lumarel](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/lumarel/32/909_2.png) [@lumarel](https://forums.rockylinux.org/u/lumarel)\
**Post date:** [November 14, 2022, 6:35am UTC](https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849/2 "2022-11-14T06:35:34Z")

</div>

Hi @miccc,

What you are seeing there are the AppStream packages:  
I think you might understand it best by reading the RH docs about this topic:

> **[Chapter 1. Using AppStream Red Hat Enterprise Linux 8 | Red Hat...](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user-space_components/using-appstream_using-appstream)**
>
> Access Red Hat’s knowledge, guidance, and support through your subscription.

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [November 15, 2022, 2:21pm UTC](https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849/3 "2022-11-15T14:21:03Z")

</div>

@miccc As of November 14th, you can now use this link to get similar information: [Software Management - Documentation](https://docs.rockylinux.org/books/admin_guide/13-softwares/#dnf-modules)

---

<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:34am UTC](https://forums.rockylinux.org/t/how-to-query-and-install-the-latest-package/7849/4 "2023-08-25T03:34:27Z")

</div>


