• ARTICLES
SEARCH

How-To Geek

10 Package Management Operations You Need Synaptic for on Ubuntu

image

The Ubuntu Software Center is a solid, user-friendly application, but sometimes you need more power. The Synaptic package manager – previously included with Ubuntu by default – can do many things the Ubuntu Software Center can’t.

You can install Synaptic from the Ubuntu Software Center – just search for Synaptic. You can also perform all these operations from the terminal – but, if you need a powerful graphical application for managing packages, Synaptic can’t be beat.

View Packages By Repository

If you use PPAs – or other third-party software repositories — on your system, it can be useful to see exactly which software is provided by which PPAs. The Ubuntu Software Center doesn’t show you this information, but you can use the Origin section in Synaptic to view packages categorized by software repository.

image

View Manually Installed Software

You can also view packages that didn’t come from repositories – for example, packages you installed by downloading DEB files yourself — select Local in the Origin section.

image

Downgrade Packages & Lock Package Versions

Using Synaptic, you can install a specific version of a package and lock it in place so it won’t be automatically upgraded. We’ve covered this process in more detail in the past.

image

See Installed Files

If you’d like to know which files a package installed to your system – and where they’re located — you can right-click the package in Synaptic, select Properties, and click the Installed Files tab.

image

View Package Information

From the Properties dialog, you can also see other information about a package, including its installed size, maintainer, and dependencies.

image

Download Changelogs

To view a package’s changelog and see what changes were made in a new version of the package, you can select the package in Synaptic, click the Package menu, and select Download Changelog.

image

Remove Automatically Installed Software

Some packages are automatically installed when you install a package – these packages are called dependencies because other packages need them to function. In some cases, the dependencies may stay installed even after you’ve removed the package that required them. These dependencies are marked as “auto removable” if they’re no longer required – you can view auto-removable packages by selecting the Status tab and clicking Installed (auto removable). From here, you can easily remove all these packages.

image

Generate Package Download Script

Synaptic can generate package download scripts that can quickly install packages on another system. To generate a shell script, search for the packages you want to install and use the “Mark for installation” option on each package as if you’re installing it normally. After you’re done marking packages, click the File menu and select Generate Package Download Script instead of clicking the Apply button. You can run this script on other systems to quickly install the marked software.

image

Delete Cached Package Files

Synaptic can delete cached package files to free up space. By default, Ubuntu stores copies of the packages it downloads – if you’re low in space, you might want to delete them. To do so, open Synaptic’s preferences window and click the Delete Cached Package Files button on the Files tab.

image

Install Suggested Packages

The Ubuntu Software Center installs a package’s “recommended” packages by default – but a package’s maintainer can also mark some packages as “suggested.” You can install these in Synaptic by right-clicking a package and using the Mark Suggested for Installation menu.

image

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 07/11/12

Comments (4)

  1. ammar

    Amazing! Really nice article

  2. OJ

    While most of these are reasons why I love synaptic and use it for most stuff that’s not one or two short commands in the shell, most, if not all can be done in the shell; the title is a little misleading.
    Perhaps you should rephrase the headline/introduction slightly, but apart from that great article. For one or two of these I did not know synaptic did it.

    Also, some are easier done by command line:
    $ apt-get autoremove #to delete unnecessary packages

    I am pretty sure deleting cache is also one command, but I can’t remember as I use bleachbit for stuff like that. (apt-get (auto)clean #perhaps, but don’t quote me on that.)

    Once again: I love that you guys write so much on ubuntu Linux.

  3. dragonbite

    Good pointing out the difference between Synaptic and the Software Store.

    People just using Ubuntu should be able to get by with the Ubuntu Software Store, while people who are more “power users” or want more control over their system can use Synpatic or if they really want to get into it, the command line.

    Linux == choice!

  4. cam2644

    I use Synaptic by preference on both Ubuntu and Mint.It’s very simple to use and your article points out some of the advantages. Thanks

Enter Your Email Here to Get Access for Free:

Go check your email!