# Upgrade to the latest awscli2 package

**URL:** <https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896>\
**Category:** Help\
**Created:** [May 1, 2024, 7:59am UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896 "2024-05-01T07:59:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [May 1, 2024, 7:59am UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/1 "2024-05-01T07:59:03Z")

</div>

I’m trying to install the latest `aws` cli tool, which is `2.15.38`, but I can’t find the right commands to do this. Is it not possible to install packages from `unstable` anymore? (this is currently a blocker for me).

---

<div class="post-metadata">

**Author:** ![billlevine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/billlevine/32/667_2.png) [@billlevine](https://discourse.flox.dev/u/billlevine)\
**Post date:** [May 1, 2024, 12:48pm UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/2 "2024-05-01T12:48:28Z")

</div>

The currently released version of flox only supports pulling from one rev of nixpkgs. We are actively working on a full solution to solve this exact issue, but it’s not yet available.

In the mean time, as an escape hatch, you can try setting `_PKGDB_GA_REGISTRY_REF_OR_REV` in your environment to a git revision of nixpkgs you want to pull from that has the version you want.  
This will set the revision that flox pulls from for _all_ the packages.

To get back to _normal_, you can run `flox update` without that environment var set.

It’s not the cleanest, but hopefully it’ll help keep things moving for you.

---

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [May 1, 2024, 1:17pm UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/3 "2024-05-01T13:17:07Z")

</div>

I tried what you are suggesting with revision `e3cd6c03dbfbd9975dd720195b5b87a1fb29fe6e` ([the latest on main](https://github.com/NixOS/nixpkgs/commit/e3cd6c03dbfbd9975dd720195b5b87a1fb29fe6e)), but then when I install with `flox install awscli2@2.15.38` I’m getting `ERROR: Could not find package awscli2`.

---

<div class="post-metadata">

**Author:** ![billlevine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/billlevine/32/667_2.png) [@billlevine](https://discourse.flox.dev/u/billlevine)\
**Post date:** [May 1, 2024, 1:48pm UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/4 "2024-05-01T13:48:45Z")

</div>

Try running `flox update`, and a `flox show awscli2` to confirm it’s the version you’re looking for. I exported `_PKGDB_GA_REGISTRY_REF_OR_REV=e3cd6c03dbfbd9975dd720195b5b87a1fb29fe6e` and that seemed to work here, showing `awscli2@2.15.38`. If that doesn’t work for you, we’ll dig a bit deeper.

---

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [May 1, 2024, 2:16pm UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/5 "2024-05-01T14:16:01Z")

</div>

That took a bit of time but that works now. Thanks a lot Bill!

---

<div class="post-metadata">

**Author:** ![billlevine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/billlevine/32/667_2.png) [@billlevine](https://discourse.flox.dev/u/billlevine)\
**Post date:** [May 1, 2024, 2:44pm UTC](https://discourse.flox.dev/t/upgrade-to-the-latest-awscli2-package/896/6 "2024-05-01T14:44:46Z")

</div>

Yeah, it’ll re-eval the different rev which could take a little bit. Glad you’re up and running, and looking forward to getting the real solution out there!
