Manage Debian packages with the Smart Package Manager
Command Line
More actions are available through the command-line interface. The syntax and function of the options in many cases match those of the Debian apt
, apt-get
, aptitude
[4], and apt-cache
tools. The developers have also added several useful options to SmartPM (Table 2). The general command form is:
Table 2
Command-Line SmartPM
Command | Option | Action |
---|---|---|
|
Update all package sources |
|
|
Update a specific package source |
|
|
Install a package |
|
|
Download but do not install |
|
|
Install a package again |
|
|
Delete a package |
|
|
Apply security patches |
|
|
Install a newer version of a package |
|
|
Check for an update |
|
|
Check and update, if a new package exists |
|
|
Validate dependencies |
|
|
Repair dependencies by retroactively installing or removing packages |
|
|
Clean the cache |
|
|
Find a package |
|
|
List installed packages |
|
|
Query local and repository databases |
|
|
List the many |
|
|
Output detailed package information |
|
|
|
Enter interactive mode |
smart <command> <options> <package>
The --help
option listed under smart query
can also be used with other commands to list options and a few usage examples.
Curiously, the smart remove <package>
tool is missing an option in the style of Aptitude's --purge
, which completely removes the configuration files. Queries about installed packages and source packages showed inconsistencies in the form of erroneous output. For example, the smart search --installed <package>
command should only list installed <package>
components, but in reality, it does far more (Figure 4).
Interactive
SmartPM's interactive interface is in many ways similar to the Apt shell [5]. In a terminal, users can run special commands such as install
, remove
, reinstall
, update
, upgrade
, check
, and fix
. Their functions are consistent with the options discussed previously. One exception is ls
, which lets you conveniently browse through the list of packages.
To enter interactive mode, type
sudo smart --shell
in the terminal. It is important to note that the software only initially performs individual operations on the cache. To implement the changes on the system, you need to issue the commit
command. For example, Figure 5 shows the complete process of removing the mc
package.
A complete list of all the other commands can be obtained by typing help
. To exit shell mode, type either EOF
, exit
, or quit
. SmartPM remembers the commands you type but not the scheduled operations. Thus, it behaves differently from Aptitude, which has a memory feature.
Conclusions
SmartPM is a good thing: On one hand, it offers all the features you need in everyday package management in a compact GUI. The GUI impresses with a well-planned design; it is stable and intuitive. Like PackageKit, the program attempts to provide a unified front end for various systems. This makes maintenance of various distributions easier.
On the other hand, SmartPM combines a variety of functions that you will probably know from the Apt group of tools in its shell interface. This mode is perfect for anyone who wants to leverage the full power of the package management functions.
A few small errors came to light in the command line: Not all of the options seemed to work properly. All told, however, the software left a very positive impression.
Infos
- SmartPM: http://labix.org/smart
- SmartPM features: http://labix.org/smart/features
- Feature request for updating branches of package lists: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=68025
- "Apt-get vs. Aptitude" by Frank Hofmann and Axel Beckert, Ubuntu User, No. 18, pg. 44
- Apt shell: http://manpages.ubuntu.com/manpages/hardy/man1/aptsh.1.html
« Previous 1 2
Buy this article as PDF
(incl. VAT)