Appearance
Install Allure Report for Linux
Allure Report can be installed on Linux from a Homebrew or DEB package or manually from an archive.
Install from Homebrew
Make sure Homebrew is installed.
In a terminal, run this command:
brew install allure
Run this command to see if it reports the latest version:
allure --version
Install from a DEB package
Make sure that your Linux distribution supports installing software from DEB packages.
Go to the latest Allure Report release on GitHub and download the
allure-*.deb
file.In a terminal, go to the directory with the file and install it. For example:
sudo dpkg -i allure_2.29.0-1_all.deb
Run this command to see if it reports the latest version:
allure --version
Install from an archive
Make sure Java version 8 or above installed, and its directory is specified in the
JAVA_HOME
environment variable.Go to the latest Allure Report release on GitHub and download the
allure-*.zip
orallure-*.tgz
archive.Uncompress the archive into an installation directory of your choice. For example:
tar xf /home/user/Downloads/allure-2.29.0.tgz -C /home/user/tools
Make sure Allure is in your
PATH
, so you can invoke it from the command line by just typingallure
.There are various ways to do so, for example, via the
update-alternatives
utility or by modifying thePATH
variable.Using update-alternatives
Details
Run the following two commands to register the new path to Allure Report and make it default.
(Replace
/home/user/tools/allure-2.29.0/bin/allure
with the path to theallure
binary file in your installation directory.)sudo update-alternatives --install /ust/bin/allure allure /home/user/tools/allure-2.29.0/bin/allure 10 sudo update-alternatives --set allure /home/user/tools/allure-2.29.0/bin/allure
If you have installed an older version before and do not need it anymore, unregister it, for example:
sudo update-alternatives --remove allure /home/user/tools/allure-2.28.0/bin/allure
Modifying PATH
Details
- Open the script that your command shell loads when logging in (it can be located at
~/.profile
,~/.bash_profile
,~/.zprofile
, etc.) and add the following line to the end of it.
(Replace
/home/user/tools/allure-2.29.0/bin
with the path to thebin
subdirectory file in your installation directory.)bashexport PATH=$PATH:/home/user/tools/allure-2.29.0/bin
If you have previously added a path to another version of Allure Report to
PATH
, make sure to remove it.Close the current terminal window, then open a new one.
Run this command to see if it reports the latest version:
allure --version