Skip to content

Instantly share code, notes, and snippets.

@nhthai2005
Last active May 8, 2022 14:41
Show Gist options
  • Save nhthai2005/ac9e1eaf0bf716484c8200197a8ab6d9 to your computer and use it in GitHub Desktop.
Save nhthai2005/ac9e1eaf0bf716484c8200197a8ab6d9 to your computer and use it in GitHub Desktop.
Howto update KeePass up to latest version on Ubuntu

Howto update KeePass up to latest version on Ubuntu

Install keepass2 on Ubuntu

sudo apt install keepass2

Download KeePass with the latest version

Goto https://keepass.info/download.html and download KeePass Portable (zip file) or use the following command:

curl -Lo KeePass.zip https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.51/KeePass-2.51.zip/download

Extract and update files

# Login root user
sudo su
mkdir -p /usr/lib/keepass2/temp /usr/lib/keepass2/_archives

# Extract zip file to temp directory
unzip KeePass-2.50.zip -d /usr/lib/keepass2/temp

# Backup keepass files of the existing version
cd /usr/lib/keepass2/
mv KeePass.exe  KeePass.exe.config  Plugins /usr/lib/keepass2/_archives

# Update keepass files of the new version
cd /usr/lib/keepass2/temp 
mv KeePass.exe  KeePass.exe.config  Plugins ../

# Remove temp directory
rm -rf /usr/lib/keepass2/temp

exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment