How to Install SQLite on Debian 11 (Legacy Guide)
Install SQLite 3 on Debian 11 for an existing system. Debian 11 LTS ended in August 2026; use a supported Debian release for new deployments.
On this page
This guide shows how to install the sqlite3 command-line program from Debian’s package repository on an existing Debian 11 (Bullseye) system.
Legacy system: Debian 11’s official Long Term Support ended on August 31, 2026, and Debian no longer provides security updates for it. Third-party Extended LTS is separate and may cover only selected packages. Do not choose Debian 11 for a new deployment. Use a supported release listed in the Debian release information; for example, follow our SQLite installation guide for Debian 12 or the Debian LTS instructions.
Prerequisites
Before you begin the installation, make sure you have the following:
- Debian 11: Ensure you have a working Debian 11 installation.
- Terminal: Access to the terminal or command line interface with sudo privileges.
Now that you have the prerequisites in place, let’s proceed with the installation.
Step 1: Refresh the package index
Refresh APT’s package index so it can find the SQLite package:
sudo apt update
This updates package metadata; it does not restore Debian 11 security support.
Step 2: Install SQLite
SQLite is available in the Debian package repository. You can easily install it using the apt package manager. To do this, run the following command:
sudo apt install sqlite3
The system will prompt you to confirm the installation. Type ‘y’ and press Enter to proceed.
Step 3: Verify the Installation
To verify that SQLite has been successfully installed, you can check the version of SQLite by running the following command:
sqlite3 --version
You should see the installed SQLite version in the output.
Step 4: Start Using SQLite
With SQLite installed, you can start using it right away. To open an interactive SQLite prompt, simply type:
sqlite3
This will open a new SQLite shell where you can execute SQL commands and manage your databases.
Conclusion
You’ve successfully installed SQLite on your Debian 11 system. You can now use SQLite to create, manage, and query databases for your applications. This lightweight database management system is highly versatile and can be used for a wide range of projects. If you’re new to SQLite, be sure to explore its documentation and tutorials to harness the full power of this powerful database system.
Happy coding!