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
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.