SUSE Conversations


Package Management Quick Reference



By: mendesdomnic

March 18, 2009 10:00 am

Reads:330

Comments:1

Rating:0

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

Task

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
file

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
name

smart channel –remove name

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

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

Disclaimer: As with everything else at SUSE Conversations, 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.

Comment

RSS