
Packages and Updates
This page is dedicated to getting up to date and installing some of my favorite apps and utilties. This will also include some basic commands for revewing installed apps and usage

Packages & Updates
Getting up and running faster by updating your server and installing some basic utility packages to help manage and troubleshoot.
Everything Updates
Ubuntu
Update the systems list of packages and list new updates that are ready for install
-
sudo apt update
​​
Install the updates to make sure you are running the most currnet supported versions of software
-
sudo apt upgrade
​
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
​
RHEL9
Update the systems list of packages and list new updates that are ready for install (dnf = Dandified YUM)
-
sudo dnf check-update
​​
Install the updates to make sure you are running the most currnet supported versions of software
-
sudo dnf upgrade
​
View Installed Packages
-
dnf list installed
Search for Specific Package
-
dnf list installed | grep nano
​
​
Search First 10 and Sort
-
sudo dnf list installed | sort | head​


Search for specific package in repos
​
-
sudo dnf search --all wireshark

Install tshark
Utilize the tshark commands by installing wireshark-cli
​​​
Install tshark
-
sudo dnf install wireshark-cli.x86_64
​
Find the command switches in tshark
-
sudo tshark -h
​
Execute a command to capture data from the ens160 interface to a pcap file.
I then use WInSCP to copy the files to Windows and use the GUI Wireshark to load the pcap.
-
sudo tshark -i ens160 -w /mnt/container/mycap.pcap
-
Use CTRL+C to stop process or you can set a stop switch for time , file size etc.​
-
​
Run tshark using the -a duration: switch and set it to stop after 15 seconds ​
-
sudo tshark -i ens160 -w /mnt/container/mypcap.pcap -a duration:15 ​
Install Nano
Install my favorite terminal text editor that allows for simple editing of text / config files
Ubuntu
-
sudo apt install nano
​
RHEL 9 (dnf = Dandified YUM)
-
sudo dnf install nano
​
Open nano by simply typing the command and path to the file
-
nano Myfile​
-
nano /home/shead/Documents/Myfile
​
Nano opens in edit mode by default. You can just start typing away and when you are ready to save your changes you use CTRL+O to save your work and CTRL+X to exit. See the linked button to the top right to goto a website with all list of shortcuts for Nano.

Click Image for Full Screen View
Install Nmap
Install the nmap network scanner that can be utilized to scan and help troublshoot network connectivity
Ubuntu
-
sudo apt install nmap
​
RHEL 9 (dnf = Dandified YUM)
-
sudo dnf install nmap
​​
​
Scan a single IP and common ports:
-
nmap -F 192.168.254.254

Scan a subnet and look for specifc ports: (SSH, Web)
-
nmap -p 22,443 192.168.254.0/24
