• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / Linux sysadmin tutorials linux system administrator / top 10 apt & apt-get commands (most used) apt vs apt-get

top 10 apt & apt-get commands (most used) apt vs apt-get

Table of Contents

Toggle
  • apt vs apt-get
    • apt-cache
    • apt & apt-get similar commands
    • apt new commands
  • apt update  vs apt upgrade vs do upgrade vs release upgrade
  • apt-get dist-upgrade vs apt full-upgrade vs apt upgrade
  • sudo apt remove  vs sudo apt purge vs apt autoremove

apt vs apt-get

apt is ubuntu feature from 2014,
ubuntu version b16.04
Debian ?
apt & apt-get are not same
apt-get python wrapper
APT means Advanced packaging tool
apt-get Debian version (ubuntu, linux mint)
aptitude command
it provides both gui & cli options with features like apt-get command

apt-cache

apt consist
both
 apt-get and apt-cache
also manges apt.conf file.
fewer & sufficient commands than apt-get

apt & apt-get similar commands

there is no difference in
apt update vs apt-get update
apt install vs apt-get install
apt remove vs apt-get remove
apt purge vs apt-get purge
apt autoremove vs apt autoremove
apt search apt-cache search
apt show vs apt-cache show

apt new commands

apt list list the packages
apt list-upgradable (to view upgradable
apt edit-sources (edit sources list)

apt update  vs apt upgrade vs do upgrade vs release upgrade

apt update refreshes repository indexes.
ex: if you added a new repository or dependency
then you type apt install
it doesn’t installs the package.
because linux system has to fetch & know the source.
we need to run update.
update nothing to do with existing packages. just it refreshes the sources.
ex: installed php 7.4.1
then new version available with same dependency
7.4.2
if we run apt update command it fetches. 7.4.2
then the upgrade command
upgrades the existing php-pfm package
from 7.4.1 to 7.4.2
not from major version 7.4 to 7.5
upgrade command without update command is useless.

apt-get dist-upgrade vs apt full-upgrade vs apt upgrade

apt-get dist-upgrade will install or remove packages as necessary to complete the upgrade, apt upgrade will automatically install but not remove packages. apt full-upgrade performs the same function as apt-get dist-upgrade .
most popular for apt-get dist-upgrade vs apt upgrade
sudo do-release-upgrade
for Upgrading is version ex ubuntu 18.04 to 20.04.

sudo apt remove  vs sudo apt purge vs apt autoremove

sudo apt autoremove

apt list –installed

apt list –all-versions

apt show pkg_name

sudo apt remove pkg_name

sudo apt purge pkg_name

sudo apt install pkg_1 pkg_2 pkg_3

 

final words:
apt is a part of apt-get and apt-cache with fewer & useful commands.

Primary Sidebar

Linux sysadmin tutorials linux system administrator

  • top 10 apt & apt-get commands (most used) apt vs apt-get
  • If-Else Statements in Shell Scripting
  • linux commands pdf (files & Directories, zip & unzip process, search etc)
  • Find Files with Specific Text on Linux grep find command
  • linux performance tuning inode limit file descriptors tco, kernel etc
  • Variables and Data Types in Shell Scripting
  • Top 10 most used Cat commands with examples (create, view, append files)
  • Ip tables / ufw / firewall d commands for block port ip rate limiting
  • Top 10 zip / tar commands to compress & extract files in linux
  • TOP 10 mv & cp commands in linux to move & copy files in Linux
  • Top 10 GREP Commands in linux to search files directory words strings
  • lsof netstat commands to know listening ports in linux 3 ways
  • Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
  • 3 Ways (SCP, rsync, Sftp) linux server migration between two remote server apache nginx
  • linux system specs commands (CPU, Memory, Disk )speed, type. manufacture
  • linux sysctl command tweaks & hardening
  • linux security limits.conf deciding user limits process limits for nginx server
  • ulimit linux unlimited command unlimto set & know user limits open files file descriptor max user process etc.
  • red hat linux certification cost jobs salary syllabus courses fees
  • ufw firewall commads allow port enable disable ubuntu 20.04
  • ddos attack prevention
  • change ssh port in linux - avoid sshd ddos attacks
  • ping command
  • memcached install ubuntu wordpress
  • check linux version (lsb_release -a) ubuntu debian 32 or 64 bit
  • rsync command linux with examples comparison to scp
  • how to uninstall package in linux ubuntu rpm, yum apt-get
  • increase open file limit linux File descriptor ft nginx , mysql, lemp
  • remove repository ubuntu
  • htop commad memory details virtual vs shard vs resident
  • chown command in Linux with Examples
  • Kill PHP process
  • VIrtual Memory vs RSS Memory vs Shared memory in Linux
  • oom killer fixing it by configuration linux ubuntu
  • Install Lemp nginx mysql php fpm Stack on Debian 11 with repository
  • connect two remote servers linux command line
  • auto start after oom killer Mysql & php fpm nginx etc ubuntu wth systemd or cron job
  • load average Linux 1, 5, 15 min 2,4,8 cores explained
  • Control Structures in Shell Scripting
  • Shell Scripting Roadmap for Beginners to Advanced
  • awk commands with practical examples
  • Shell Scripting Tutorial for Beginners 🚀
  • find Command in Linux with Examples
  • sed Command in Linux with Examples (Beginner to Advanced)
  • Linux Text processing commands in with Examples
  • linux disk management commands
  • fdisk command in linux with examples
  • how to add a new disk in linux
  • Linux mount Command with Examples
  • fstab options with examples
  • Top 50 Shell Scripting Interview Questions and Answers
  • Linux Networking Interview Questions and Answers
  • Linux Networking Commands Cheat Sheet with Examples pdf
  • Netstat & SS Commands cheat sheet with examples Interview Questions
  • Nmap Cheat Sheet – Network Scanning & Security
  • Bash Brackets ([], (), {}, $( ), $(( ))) – Types, Uses & Examples

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy