How to Install Nala

 

# Installation

Volian Scar Repo

Install the Volian Scar repo.

echo "deb http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list
wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null

sudo apt-get install --reinstall python3-debian

If you want to add the source repo.

echo "deb-src http://deb.volian.org/volian/ scar main" | sudo tee -a /etc/apt/sources.list.d/volian-archive-scar-unstable.list

For Ubuntu 22.04 / Debian Sid and newer.

sudo apt update && sudo apt install nala

For older distributions like Ubuntu 21.04 / Debian Stable and older.

sudo apt update && sudo apt install nala-legacy
 

Convert APT to Nala

Add the following to your ~/.bashrc AND /root/.bashrc file:

apt() { 
  command nala "$@"
}
sudo() {
  if [ "$1" = "apt" ]; then
    shift
    command sudo nala "$@"
  else
    command sudo "$@"
  fi
}
 
Add alias sudo='sudo ' to  ~/.bashrc AND /root/.bashrc file
 

Comments