Costa Rica
Last updated: 2025-08-04
This is a summary based on References
ssh <user_name>@<IPadress>
Understanding how to use package manager and installation utility apt to manage packages on Ubuntu/Debian Linux distributions.
Note: Ubuntu/Debian systems will usually start a service automatically, once its package is installed. You may need to update the package manager.
sudo apt update
sudo apt install apache2 wget
- Checking Apache server:
curl http://localhost - If that's working, we use the wget package to capture the output of an http request. We'll point the output to a file in our home directory called local_index.response
wget --output-document=local_index.response http://localhost
- Attempt to install the RPM to determine what dependencies are required:
cd Downloads
sudo rpm -i elinks-0.12-0.37.pre6.el7.0.1.x86_64.rpm
We'll get some dependency errors (version numbers may vary).
- Use the package manager to determine which packages provide the dependencies:
sudo yum provides libmozjs185*
The output shows that the js package provides libmozjs185.
- Install the packages that provide those dependencies:
sudo yum install js - All of our dependencies were not resolved with that one package installation. Attempt to install the RPM again. If any other dependencies are needed, repeat steps 3 and 4 (substituting libmozjs185 with whatever dependency is still missing) to resolve that issue:
sudo rpm -i elinks-0.12-0.37.pre6.el7.0.1.x86_64.rpm - Once the RPM is installed successfully, run elinks to ensure the application is working properly:
elinks - Attempt to open a website by providing a URL:
http://www.amazon.com
Understand how to install telnet and install Apache.
- Become the root user:
sudo -i
- Install the telnet package:
yum install -y telnet - Verify the integrity of the RPM database:
cd /var/lib/rpm/
/usr/lib/rpm/rpmdb_verify Packages
- Move Packages to Packages.bad and create a new RPM database from Packages.bad:
mv Packages Packages.bad
/usr/lib/rpm/rpmdb_dump Packages.bad | /usr/lib/rpm/rpmdb_load Packages
- Verify the integrity of the new RPM database:
/usr/lib/rpm/rpmdb_verify Packages - Query installed packages for errors:
rpm -qa > /dev/null - Rebuild the RPM database:
rpm -vv --rebuilddb - Install telnet:
yum install -y telnet
- Attempt to install Apache:
yum install -y httpd - Edit /etc/yum.conf:
vim /etc/yum.conf - Remove the exclusion for httpd:
exclude=httpd - Save and close the file:
:wq - Install Apache:
yum install -y httpd
https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard