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)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs