top of page

How to Install Packages on Ubuntu

  • Writer: Joy Tech
    Joy Tech
  • Dec 8, 2022
  • 1 min read

Updated: Feb 3, 2023

Debian, Ubuntu, and Linux Mint use dpkg, apt-get, and apt commands to install DEB packages.


Red Hat, Fedora, CentOS use rpm yum, and dnf commands to install RPM packages.


Installing DEB Packages

Example 1: figlet

  • Try running the command.

  • Check the repository using apt-cache search figlet

  • Install using sudo apt install figlet

  • Run the command

Example 2: cowsay

  • Try running the command.

  • Check the repository using apt-cache search cowsay

  • Install using sudo apt install cowsay

  • Run the command

Removing DEB Packages

  • sudo apt remove figlet

  • sudo apt remove cowsay

To remove a package and its configuration files:

  • sudo apt purge figlet

  • sudo apt purge cowsay


Video Waltkthrough: Linux Essentials | Installing and Removing Packages







ree


Comments


Post: Blog2_Post
  • LinkedIn

©2022 by Joy Tech

bottom of page