• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Debian

Using Apt Utilities On Ubuntu

How VPS by How VPS
November 1, 2019
in Debian
0
0
SHARES
47
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
    1. Commands
    2. Personal Package Archives (PPA)
    3. Handy Aliases
  2. Want to contribute?


Introduction

This write up summarizes the use of apt-get and apt-cache command line utilities to install, remove, search, and find information on any Ubuntu/Debian system software packages.

apt-get is a package management utility used to install, update, and remove software packages on Ubuntu and Debian based Linux systems.

apt-cache is a utility used for searching and getting information on available software packages on Ubuntu and Debian based Linux systems.

Commands

# update package sources list
sudo apt-get update

# install a package (the -y flag auto answers yes)
sudo apt-get install package name -y

# search for a package
sudo apt-cache search package name

# show information about a package
sudo apt-cache show package-name

# uninstall a package
sudo apt-get remove package-name

# purge a package (will remove package along along with it's files)
sudo apt-get purge package-name

# uninstall unused dependencies (that remove/purge do not)
sudo apt-get autoremove

Personal Package Archives (PPA)

PPAs are software packages provided by the community that generally contain the latest and greatest version of a software, but sometimes come with risks. So for example, at the time of this writing, PHP 7 is out but is not included in Ubuntu’s default package source list. To install on a server, one has to add the “ondrej/php” PPA first using the command apt-add-repository ppa:ondrej/php. After doing so, PHP 7 becomes available to install using apt-get after an update (i.e. sudo apt-get update && sudo apt-get install php-7.0).

Below is how you add and remove PPA’s on Ubuntu/Debian systems.

# add a PPA
sudo add-apt-repository ppa:author/ppa-name

# remove a PPA
sudo add-apt-repository --remove ppa:author/ppa-name

Handy Aliases

A bash alias is a shortcut/abbreviation that prevents you from typing a long command sequence. Adding below snippet to your ~/.bash_profile allows you to for example install nginx using apti nginx as oppose to sudo apt-get install nginx.

alias apti="sudo apt-get install"
alias aptr="sudo apt-get remove"
alias aptar="sudo apt-get autoremove"
alias aptp="sudo apt-get purge"
alias apts="sudo apt-cache search"
alias aptinfo="sudo apt-cache show"

alias addppa="sudo add-apt-repository"
alias removeppa="sudo add-apt-repository --remove"

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install ImpressPages CMS 5.0 on a Debian 9 LAMP VPS

Next Post

Setup Your Own DNS Server on Debian/Ubuntu

Next Post

Setup Your Own DNS Server on Debian/Ubuntu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet