Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following should do the trick in most cases, switching from previous alpha releases. Make sure that the destination is correct such that you overwrite the older version. Drush should ask you for confirmation when running the command. If it doesn't, change the destination to match wherever you have it installed already.