ソースからコンパイルしてバージョンアップする方法
gcc、makeインストール
yum install -y wget gcc make
最新版のsqlite取得
wget https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
ls
コンパイル
tar zxvf sqlite-autoconf-3360000.tar.gz
ls
cd sqlite-autoconf-3360000/
./configure --prefix=/usr/local
make
make install
cd ..
ls
rm -rf sqlite-autoconf-3360000 sqlite-autoconf-3360000.tar.gz
ライブラリのパスを通す
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3
echo 'export LD_LIBRARY_PATH="/usr/local/lib"' >> ~/.bashrc
ldconfig