Upgrade Agile plugin on Redmine 7 in Linux

This tutorial will show you in detail how to upgrade the Agile plugin from older to a newer version on Redmine 7 that runs on Ubuntu Linux 26.04.

01_agile_sys_info_with_old_version.png

Note: Please keep in mind that the below steps are absolutely the same if you:

  • update older light to a newer light version
  • upgrade from light to PRO version
  • update older PRO to a newer PRO version

Check the latest version

There are 3 ways of checking if there is a newer version of the plugin.

The first one is to go to Administration - Plugins - Check for updates. When you click on the Check for updates button, you will got an exclamation mark near the plugin version if it is old version and green sign if you have already installed the very latest one.

02_agile_check_updates_redmine.png

The second way is to check the changelog of our site.

03_agile_check_updtes_our_site.png

And the third way is to see the changelog of the official Redmine community site.

04_agile_check_updates_redmine_org.png

Delete the old version

The very first thing that you need to do is to delete the old plugin folder into your Redmine directory plugins' folder.

cd /var/www/html/redmine/plugins/

Note: Please keep in mind that the in the current example the Redmine is installed in the /var/www/html/redmine directory but it is up to you where it is installed, so the path to your Redmine in your case could be different. Also, the versions of the plugin could be different as well, for example could be higher than the ones showed in this guide.

  • listing the plugin in the Ubuntu terminal

05_agile_listing_old_version_plugin_terminal.png

  • listing the plugin in the Ubuntu files system

06_agile_listing_old_version_plugin_files_system.png

  • delete it via the following command
sudo rm -rf redmine_agile/

07_agile_delete_command.png

  • check if the plugin is deleted in the terminal

08_agile_list_files_deleted_terminal.png

  • check if the plugin is deleted in the files system

09_agile_list_files_deleted_file_system.png

Copy the zip file of the new version

We have already downloaded the Agile newer (latest) version in our Downloads folder.

In the Downloads folder:

10_agile_new_version_downloads_folder_file_system.png

Checked in the Linux terminal with the "ls" command:

11_agile_new_version_downloads_folder_terminal.png

As being the Downloads folder in your terminal, please use the below command to copy the file in your redmine/plugins folder.

sudo cp redmine_agile-1_6_14-pro.zip /var/www/html/redmine/plugins/

In terminal:

12_agile_copy_command.png

After it is copied the situation would be like this. Please navigate to your redmine/plugins directory.

  • in the files directory:

13_agile_copied_files_system.png

  • in the terminal with the "ls" command:

14_agile_copied_file_terminal.png

Unzip the file

As being in your redmine/plugins directory, please execute the below command to unzip the file.

sudo unzip redmine_agile-1_6_14-pro.zip

The result of the unzipping in your terminal would be these rows:

15_agile_unzipped_rows.png

The result will be unzipped folder of the plugin.

  • In terminal:

16_agile_unzipped_terminal.png

  • In files directory:

17_agile_unzipped_files_system.png

Delete the zip file

The zip file is no longed needed, so we just delete it with the following command.

sudo rm -rf redmine_agile-1_6_14-pro.zip

Install the needed gems

Now you have to return back to the previous directory .../redmine/.

Important: Both gems and migration commands (the next command) have to be executed in the .../redmine/ directory and not the .../redmine/plugins directory.

Then run:

sudo bundle install

As a result will have the needed gems installed.

18_agile_bundle_install.png

Migration

Please do the migration via this command:

sudo bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production

The migration afterward will have these rows in your terminal:

19_agile_migration.png

Restart Redmine

We are almost done. The last step is to restart your Redmine.

In our case we run the Redmine in the terminal so I just close the terminal with the running Redmine and open new one then execute the command to start Redmine (in the .../redmine/plugins directory):

sudo bundle exec rails server -e production

In the terminal it looks like this when started again:

20_agile_restarted_redmine_terminal.png

Note: Please keep in mind that your Redmine could run in another way (not started via terminal) and you could restart it just like executing this command in the ...redmine/ directory ---> touch tmp/restart.txt. Also you can switch off and on your virtual machine if your Redmine is installed as a Bitnami Redmine virtual machine as described here.

When you refresh your Redmine in the browser page (as it has been restarted) you will see the newer (latest) version of the Agile plugin installed successfully.

21_agile_newer_version.png

Video demonstration

To make the situation even more clear, please see this video demonstration of updating/upgrading the Agile plugin to a newer version on Redmine 7.

Was this article helpful? Yes  No