How to Install SQLite on Fedora 30

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. It’s a popular solution for applications that need to use on-disk files formatted as lightweight databases to run efficiently.

Prerequisites

  • Access to a Fedora Linux server, with sudoers or root privileges.

Installation

Update packages and information

Update your packages before you get started. For many of these Linux commands, you will receive multiple screens of output that this guide will shorten to ‘…’, but here are the relevant messages to look out for:

# yum update
...
Fedora Modular 30 - x86_64 - Updates
...
Install   10 Packages
Upgrade  175 Packages
...
Is this ok [y/N]:

Press ‘y’

Install SQLite

# yum install sqlite
...
Install  1 Package
...
Is this ok [y/N]:

Press ‘y’

Installed:
  sqlite-3.26.0-7.fc30.x86_64

Complete!

Verify Installation

Once that’s complete, check the version, as of this writing, we installed 3.26.0:

# sqlite3 --version
3.26.0 2018-12-01 12:34:55

Start sqlite3:

# sqlite3
SQLite version 3.26.0 2018-12-01 12:34:55
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>

Exit from the sqlite3 shell using .exit or .quit.

Conclusion

In this article, you learned how to install SQLite on Fedora. Next steps should include opening your desired sqlite files in its shell, or configuring your application to use your new SQLite instance.

Leave a Reply

Your email address will not be published. Required fields are marked *