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).
![](/var/linux_magazin/storage/images/issues/2013/155/smartpm/figure-4/595600-1-eng-US/Figure-41_large.png)
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.
![](/var/linux_magazin/storage/images/issues/2013/155/smartpm/figure-5/595603-1-eng-US/Figure-51_large.png)
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.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.