Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:guides:database [2014/11/08 18:34] emgi [Keeping sqlite up-to-date] |
en:guides:database [2014/11/08 18:34] emgi [Keeping sqlite up-to-date] |
||
---|---|---|---|
Line 35: | Line 35: | ||
======Keeping sqlite up-to-date====== | ======Keeping sqlite up-to-date====== | ||
- | SQLite is still under development and new versions are made available every one-two months. You can run the latest client without compiling and installing a package every time. In the end, it is just one binary file: sqlite3. This file is available as a precompiled binary for download from www.sqlite.org. All that's needed is to move it to the correct folder, thereby replacing the old version. A sample script could look like this: | + | SQLite is still under development and new versions are made available every one-two months. You can run the latest client without compiling and installing a package every time. In the end, it is just one binary file: sqlite3. This file is available as a precompiled binary for download from www.sqlite.org. All that's needed is to move it to the correct folder, thereby replacing the old version. A sample script to automate this action could look like this: |
<code>cd /home/<your-home-dir> | <code>cd /home/<your-home-dir> | ||
if [ -s sqlite3 ]; then | if [ -s sqlite3 ]; then | ||
Line 44: | Line 44: | ||
fi | fi | ||
</code> | </code> | ||
- | This script looks for a file named sqlite3 in /home/<your-home-dir>, if ound it moves the old sqlite3 binary to sqlite3.old in /home/<your-home-dir> and installs the latest version with the correct access mode in /usr/bin. | + | This script looks for a file named sqlite3 in /home/<your-home-dir>, if found it moves the old sqlite3 binary to sqlite3.old in /home/<your-home-dir> and installs the latest version with the correct access mode in /usr/bin. |