• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install SQLite on Ubuntu 17.04

1605

To install SQLite on Ubuntu 17.04

SQLite is a relational database management system available on a C programming library. In contrast to many other database management systems, SQLite is not a client&ndash server database engine. Rather, it is embedded into the end program. In this tutorial, you will be guided through the installation of SQLite on Ubuntu 17.04.

Installing SQLite

Adding the required repository is the most import step to do before you begin with the installation of SQLite on your Ubuntu machine.

root@linuxhelp:~# add-apt-repository ppa:jonathonf/backports
 Backports of various (low impact) packages to Trusty and Xenial
 More info: https://launchpad.net/~jonathonf/+archive/ubuntu/backports
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmpl79oftld/pubring.gpg'  created
gpg: /tmp/tmpl79oftld/trustdb.gpg: trustdb created
gpg: key 8CF63AD3F06FC659: public key " Launchpad PPA for J Fernyhough"  imported
gpg: Total number processed: 1
gpg:               imported: 1
OK

Once it is done, update your repository as follows.

root@linuxhelp:~# apt-get update 
Ign:1 http://ppa.launchpad.net/jonathonf/backports/ubuntu zesty InRelease                                      
Ign:2 http://ppa.launchpad.net/jonathonf/backports/ubuntu zesty Release                                        
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty InRelease                     
Ign:4 http://ppa.launchpad.net/jonathonf/backports/ubuntu zesty/main i386 Packages            
Get:5 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]                   
Get:6 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
.
.
.
Get:35 http://security.ubuntu.com/ubuntu zesty-security/universe Translation-en [25.0 kB]                                                                                           
Get:36 http://security.ubuntu.com/ubuntu zesty-security/multiverse i386 Packages [1,980 B]                                                                                          
Get:37 http://security.ubuntu.com/ubuntu zesty-security/multiverse amd64 Packages [1,824 B]                                                                                         
Fetched 869 kB in 12s (67.7 kB/s)                                                                                                                                                   
Reading package lists... Done

Now is the time to install SQLite database. Run the following command for the same purpose.

root@linuxhelp:~# apt-get install sqlite3 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  sqlite3
0 upgraded, 1 newly installed, 0 to remove and 102 not upgraded.
Need to get 697 kB of archives.
After this operation, 2,355 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 sqlite3 amd64 3.16.2-3 [697 kB]
.
.
.
Preparing to unpack .../sqlite3_3.16.2-3_amd64.deb ...
Unpacking sqlite3 (3.16.2-3) ...
Setting up sqlite3 (3.16.2-3) ...
Processing triggers for man-db (2.7.6.1-2) ...

SQLite has been installed, invoke the following command to enter into SQLite terminal.

root@linuxhelp:~# sqlite3 
SQLite version 3.16.2 2017-01-06 16:32:41
Enter " .help"  for usage hints.
Connected to a transient in-memory database.
Use " .open FILENAME"  to reopen on a persistent database.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What datatypes does SQLite support?

A

SQLite uses dynamic typing. Content can be stored as INTEGER, REAL, TEXT, BLOB, or as NULL.

Q

Is SQLite threadsafe?

A

1.SQLite is threadsafe.
2.SQLite must be compiled with the SQLITE_THREADSAFE preprocessor macro set to 1.
3.SQLite is threadsafe because it uses mutexes to serialize access to common data structures. However, the work of acquiring and releasing these mutexes will slow SQLite down slightly.

Q

Does SQLite support a BLOB type?

A

SQLite allows you to store BLOB data in any column, even columns that are declared to hold some other type. BLOBs can even be used as PRIMARY KEYs.

Q

What is the maximum size of a VARCHAR in SQLite?

A

SQLite does not enforce the length of a VARCHAR. You can declare a VARCHAR(10) and SQLite will be happy to store a 500-million character string there. And it will keep all 500-million characters intact. Your content is never truncated. SQLite understands the column type of "VARCHAR(N)" to be the same as "TEXT", regardless of the value of N.

Q

What is an SQLITE_CORRUPT error?

A

An SQLITE_CORRUPT error is returned when SQLite detects an error in the structure, format, or other control elements of the database file.
SQLite does not corrupt database files without external help. If your application crashes in the middle of an update, your data is safe.

Related Tutorials in How to install SQLite on Ubuntu 17.04

Related Tutorials in How to install SQLite on Ubuntu 17.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install SQLite on Ubuntu 17.04

Related Forums in How to install SQLite on Ubuntu 17.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install SQLite on Ubuntu 17.04

Related News in How to install SQLite on Ubuntu 17.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.