# Standard procedure to upgrade my Alire toolchain?

**URL:** https://forum.ada-lang.io/t/standard-procedure-to-upgrade-my-alire-toolchain/1991
**Category:** General
**Tags:** gnat, alire
**Created:** [April 9, 2025, 4:21pm UTC](https://forum.ada-lang.io/t/standard-procedure-to-upgrade-my-alire-toolchain/1991 "2025-04-09T16:21:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mhneifer](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/mhneifer/32/460_2.png) [@mhneifer](https://forum.ada-lang.io/u/mhneifer)
#### Post date: [April 9, 2025, 4:21pm UTC](https://forum.ada-lang.io/t/standard-procedure-to-upgrade-my-alire-toolchain/1991/1 "2025-04-09T16:21:00Z")

</div>

I have a newbie question. On Linux, Alire is simply provided in an archive. So to update Alire I can just download a newer version and unpack the archive. But how do I update the installed toolchain(s) with Alire?

I think that `alr update` is project related and not what I want.

---

<div class="post-metadata">

### Author: ![pmnw](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/p/c37758/32.png) [@pmnw](https://forum.ada-lang.io/u/pmnw)
#### Post date: [April 9, 2025, 4:50pm UTC](https://forum.ada-lang.io/t/standard-procedure-to-upgrade-my-alire-toolchain/1991/2 "2025-04-09T16:50:00Z")

</div>

Hey, I think these two commands can be used to first update the index and then select the latest toolchain:

```
alr index --update-all 
alr toolchain --select

```

---

<div class="post-metadata">

### Author: ![mhneifer](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/mhneifer/32/460_2.png) [@mhneifer](https://forum.ada-lang.io/u/mhneifer)
#### Post date: [April 13, 2025, 8:10am UTC](https://forum.ada-lang.io/t/standard-procedure-to-upgrade-my-alire-toolchain/1991/3 "2025-04-13T08:10:46Z")

</div>

It seems that `alr toolchain --select` runs `alr index --update-all` automatically. At least with Alire 2.1.0 running on Debian 12.10 :

```ada
marcus@lovelace:~$ alr toolchain --select
The index can be periodically refreshed to make available recently published crates. 
Do you want Alire to go online without asking in the future? 
(You can update manually with `alr index --update-all` at any time.)
[Y] Yes [N] No (default is Yes) 
Using default: Yes
◴ Updating index... remote: Enumerating objects: 2018, done.
[...]

```
