DEV Community

Cover image for 7.Install a package
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

7.Install a package

Lab Information

As per new application requirements shared by the Nautilus project development team, serveral new packages need to be installed on all app servers in Stratos Datacenter. Most of them are completed except for sqlite.

Therefore, install the sqlite package on all app-servers.

Lab Solutions

🧭 Part 1: Lab Step-by-Step Guidelines (

Objective

Install the sqlite package on all Nautilus application servers.

Target servers:

Server User
stapp01 tony
stapp02 steve
stapp03 banner

1️⃣ Login to Jump Host

ssh thor@jump_host.stratos.xfusioncorp.com
Enter fullscreen mode Exit fullscreen mode

Password:

mjolnir123

2️⃣ Install sqlite on App Server 1

SSH into the server:

ssh tony@stapp01
Enter fullscreen mode Exit fullscreen mode

Password:

Ir0nM@n

Install the package:

sudo yum install -y sqlite
Enter fullscreen mode Exit fullscreen mode

Verify:

sqlite3 --version
Enter fullscreen mode Exit fullscreen mode

Exit:

exit

3️⃣ Install sqlite on App Server 2

SSH:

ssh steve@stapp02
Enter fullscreen mode Exit fullscreen mode

Password:

Am3ric@

Install:

sudo yum install -y sqlite
Enter fullscreen mode Exit fullscreen mode

Verify:

sqlite3 --version
Enter fullscreen mode Exit fullscreen mode

Exit:

exit

4️⃣ Install sqlite on App Server 3

SSH:

ssh banner@stapp03
Enter fullscreen mode Exit fullscreen mode

Password:

BigGr33n

Install:

sudo yum install -y sqlite
Enter fullscreen mode Exit fullscreen mode

Verify:

sqlite3 --version
Enter fullscreen mode Exit fullscreen mode

🧠 Part 2: Simple Explanation (Beginner Friendly)

What this lab tests

This lab checks your ability to install packages on multiple servers.

The tool used is:

yum

which is the package manager for RHEL/CentOS systems.

What is SQLite?

SQLite is a lightweight database engine.

Unlike MySQL or PostgreSQL:

Database Server Required
MySQL Yes
PostgreSQL Yes
SQLite ❌ No

SQLite stores data in a single file.

Example database file:

app.db

Applications often use SQLite for:

small apps

embedded systems

local storage

Understanding the install command

sudo yum install -y sqlite

Breakdown:

Part Meaning
sudo run as root
yum package manager
install install software
-y auto-confirm

Why install on all servers

The application may run on:

stapp01
stapp02
stapp03

So the package must exist on every node.


Resources & Next Steps
📦 Full Code Repository: KodeKloud Learning Labs
📖 More Deep Dives: Whispering Cloud Insights - Read other technical articles
💬 Join Discussion: DEV Community - Share your thoughts and questions
💼 Let's Connect: LinkedIn - I'd love to connect with you

Credits
• All labs are from: KodeKloud
• I sincerely appreciate your provision of these valuable resources.

Top comments (0)