Package Management Quick Reference

By: mendesdomnic

March 18, 2009 10:00 am





Package management is probably the most distinctive feature of any Linux distribution. SUSE allows users to manage software using various methods. By default we have zypper, in addition we also have smart and pkcon. Below is list of common tasks and corresponding commands used to manage a package.

Quick Command Reference


zypper command

smart command

pkcon command

Managing software  

Install new software from package repository

zypper install pkg

smart install pkg

pkcon install pkg

Install new software from package file

zypper install pkg

smart install pkg

pkcon install-file pkg

Update existing software

zypper update -t package pkg

smart install pkg

pkcon update pkg

Remove unwanted software

zypper remove pkg

smart remove pkg

pkcon remove pkg

Updating the system

Update package list

zypper refresh

smart update

pkcon refresh

Update system

zypper update

smart upgrade

pkcon upgrade

Searching for packages

Search by package name


zypper search pkg

smart search pkg

pkcon search name pkg

Search by pattern

zypper search -t pattern pattern

smart search pattern

pkcon search details pattern

Search by file name

zypper wp

smart query file

pkcon what-provides file

List installed packages

zypper search –is

smart query –installed

Configuring access to software repositories

List repositories


zypper repos

smart channel –show

pkcon repo-list

Add repository

zypper addrepo
path name

smart channel –add name path

Remove repository

zypper removerepo

smart channel –remove name

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Tags: , , ,
Categories: SUSE Linux Enterprise, SUSE Linux Enterprise Desktop, SUSE Linux Enterprise Server, Technical Solutions

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

1 Comment

  1. By:jkupec

    Update existing softwarezypper up [pkg] is enough, ‘-t package’ is not needed anymore. To list/apply patches use zypper lp/patch.