Monday, May 2, 2011

Common Misconceptions–Yum vs. Apt. Getting things right !

Yellowdog Updater, Modified (also known as YUM) is a command line package management utility –meaning that through a command window, it automates the installation, upgrade, configuration, and removal of software packages from a computer. It is an open source utility, making available to all administrators on a network. There are several tools that enhance the command line interface of YUM with graphical user interfaces –making its functionality better.

Aptitude as an Advanced Packaging Tool (or an APT) that displays software packages and gives the user the ability to pick the packages they wish to install or remove from their computer. Aptitude comes complete with a powerful search system which makes use of flexibility search patterns. It is based mostly on the ncurses computer terminal library –a programming library that provides an API and gives the programmer the power to write a text user interface without the use of a terminal.

YUM is a complete overhaul of its predecessor, Yellowdog Updater (also known as YUP). It was conceived as a means of updating and managing Red Hat Linux systems and has since inception been adopted by Red Hat Enterprise Linux, Fedora, CentOS, and many other Linux distributions that are all RPM based. The YUM utility synchronises remote metadata to the local client without being prompted to do so. Thusly, YUM is incapable of failing if the user fails to run a command at the interval that particular command requires.

Aptitude comes standard with a command line interface (or CLI), similar to the apt- family of tools (Advanced Packaging Tool, which works with the core libraries in order to execute installation and removal of software). Unlike many other APIs, Aptitude does not require root privileges in order to run. It, instead, shows a prompt to Become Root in the event that those rights are deemed necessary. When Aptitude opens it suggests a threaded list of packages that can be navigated using the arrow keys and the enter key to open and collapse nodes.

YUM also uses a separate tool in order to set up its own repositories. This tool is known as createrepo and generates the necessary XML metadata –as well as the splite metadata if the option -d is selected) necessary to create the YUM repositories. The tool known as œmrepo aids in the creation and maintenance of the YUM repositories.

Summary:

1. YUM is a command line package management utility that manages the installation, upgrade, configuration, and removal of software packages; Aptitude as an APT that displays software packages and gives the user the power to choose which programs she wishes to install or remove.

2. YUM automatically synchronises remote metadata to the local client without needing a prompt; Aptitude has a command line interface that executes installation and removal of software without the need of root privileges.

source: http://www.differencebetween.net/technology/difference-between-yum-and-aptitude/

1 comment:

Donal Lafferty said...
This comment has been removed by the author.