I installed the newest version of sqlite3, but when I enter "sqlite3" on the command line, the old sqlite3 loads. In fact, when I do "which -a sqlite3", the only result is the old, preinstalled version in /usr/bin/sqlite3.
The steps I used to install the new version:
cd /usr/local/bin
wget https://www.sqlite.org/2022/sqlite-autoconf-3400000.tar.gz
tar zxvf sqlite-autoconf-3400000.tar.gz
cd sqlite-autoconf-3400000
./configure
make
make install
Most articles about installing sqlite3 say to use these or similar commands:
apt update
apt upgrade
apt install sqlite3
But when I do that, I get the error, "sqlite3 is already the newest version (3.22.0-1ubuntu0.7)." But that's not true, the newest version is 3.40.0.