Author: Sahil Suri

Introduction to the aptitude package manager for Ubuntu

Introduction In our ongoing series of articles covering various software management tools, we have already covered, dpkg,apt-get and apt. In this article, we’ll cover the aptitude tool for package management on our Ubuntu 16.04 system. The aptitude command is a very useful, text-based utility for managing packages on your server.  Some administrators use it as an alternative to apt.  The aptitude package management software provides a command line utility named aptitude but a powerful text user interface as well. The TUI displays a list of software packages and allows the user to interactively pick packages to install or remove. The aptitude text user interface is based on the curses computer terminal library, with which it provides an interface that incorporates some elements commonly seen in graphical user interfaces (GUIs). Given below are some of the useful features of aptitude: a mutt-like syntax for matching packages in a flexible manner mark packages as “automatically installed” or “manually installed” so that packages can be auto-removed when no longer required colorful preview of actions about to be taken dselect-like persistence of user actions the ability to retrieve and display the Debian changelog of most packages AptCLI-like (= apt-get + apt-cache) command line mode Score-based and (usually) smarter dependency resolver than apt-get   Installing aptitude: The aptitude software is not installed on the system by default. We can install it by using the...

Read More

zypper package management tool examples for managing packages on SUSE Linux

Introduction The zypper package management tool performs the same function for SUSE Linux as yum and apt perform for RedHat and Debian based systems respectively. SUSE (Software and System Entwicklung (Germany) meaning Software and System Development, in English) Linux runs on top of the open-source Linux kernel. The SUSE Linux distribution is available in two variants, a community-driven project named OpenSUSE and a commercial version named SUSE Linux Enterprise. Zypper and YaST are the two command line tools used for package management in OpenSUSE and SUSE Enterprise Linux platforms. Both tools work on top of RPM. Zypper uses the libzypp library which provides the ZYpp package manager. ZYpp is a Linux software management engine and open source project originally sponsored by Novell and provides a powerful dependency resolver and a convenient package management API. In this article, we will show you how to use the zypper package management tool to search for, install and remove packages along with a few other uses. We will be using the SUSE Enterprise Linux version 12 for the examples demonstrated in this article.   Example 1: Search for a Specific Package To search for a package from a repository we use the zypper search command followed by the package name we want to search for. To demonstrate, let’s search for the package name git. linuxnix:~ # zypper search git Loading repository data... Reading...

Read More

APT-CACHE and APT-GET commands for package management in Ubuntu

Introduction In an earlier article, we demonstrated how you could use the dpkg package manager to install, remove and query information about software packages in the Ubuntu OS. In this article, we will show you how to use apt-cache to search for and query information about packages available in online and local repositories and we will also show you how to use apt-get to install and uninstall packages. Essentially apt-cache is the tool we use to query the apt software cache to obtain information about packages and apt-get is the tool we use for installing packages and modifying the state of packages installed on the system. All the examples demonstrated in this article were performed on an Ubuntu 16.04 system.   APT-CACHE examples   Example 1: List all available packages To list all packages available to be installed, we use the apt-cache pkgnames command as shown below root@linuxnix:~# apt-cache pkgnames libdatrie-doc libfstrcmp0-dbg librime-data-sampheng python-pyao-dbg fonts-georgewilliams python3-aptdaemon.test libcollada2gltfconvert-dev python3-doc8 r-bioc-hypergraph angrydd fonts-linuxlibertine ---------output truncated for brevity Note that this command only shows the package names and no other information about the package. Example 2: Search for a package To search for a package use the apt-cache search command followed by the package name. Let’s search for the nano text editor. root@linuxnix:~# apt-cache search nano nano - small, friendly text editor inspired by Pico alpine-pico - Simple text editor from Alpine,...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.