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
-
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
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.
-
DebConf24 to be Held in South Korea
Busan will be the location of the latest DebConf running July 28 through August 4