Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Package Management: yum and apt

Package Management: yum and apt A package manager installs and updates software. apt on Ubuntu/Debian. yum (or dnf) on Amazon Linux. Ubuntu: sudo apt install git . Amazon Linux: sudo yum install git . Install only from official repositories . Random .deb/.rpm files or “curl | bash” scripts can carry

Package Management: yum and apt A package manager installs and updates software. apt on Ubuntu/Debian. yum (or dnf) on Amazon Linux. Ubuntu: sudo apt install git . Amazon Linux: sudo yum install git . Install only from official repositories . Random .deb/.rpm files or “curl | bash” scripts can carry
Package Management: yum and apt · Download PNG
Read card text

What this card says

What it is

A package manager installs and updates software.

apt on Ubuntu/Debian. yum (or dnf) on Amazon Linux.

Example

Ubuntu: sudo apt install git.

Amazon Linux: sudo yum install git.

Why it matters for security

Install only from official repositories.

Random .deb/.rpm files or “curl | bash” scripts can carry malware.

Common mistake

Typing apt on Amazon Linux. Check the OS first with cat /etc/os-release.

TaskUbuntu / Debian (apt)Amazon Linux 2023, Amazon…
Refresh package listsudo apt update(automatic) sudo yum makecache
Upgrade allsudo apt upgrade -ysudo yum update -y
Installsudo apt install -y nginxsudo yum install -y nginx*
Removesudo apt remove nginx (purge removes config too)sudo yum remove nginx
Searchapt search phpyum search php

Learn more in the lesson: 5.7 Package Management: yum and apt

See all Ravi Sir's Cyber Security Cards