• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

zypper: command not found

by admin

SUSE, like Red Hat, using RPM for package management. But instead of using yum, they use another tool set with Zypp (also known as libZypp) as backend. Software management can be done with the graphical configuration software YaST or the command-line interface tool Zypper.

zypper command line options

Important basic parameters are:

Command Description
zypper search Search for software
zypper install Install software
zypper remove Remove software
zypper update Update software
zypper dist-upgrade Perform a distribution upgrade
zypper info Show information

If you encounter the below error while running the zypper command:

zypper: command not found

you may try installing the zypper package as per your choice of distribution.

Distribution Command
Debian apt-get install zypper
Ubuntu apt-get install zypper
Kali Linux apt-get install zypper
Fedora dnf install zypper
Raspbian apt-get install zypper

zypper Command Examples

1. Synchronize list of packages and versions available:

# zypper refresh

2. Install a new package:

# zypper install package

3. Remove a package:

# zypper remove package

4. Upgrade installed packages to the newest available versions:

# zypper update

5. Search package via keyword:

# zypper search keyword

6. Show information related to configured repositories:

# zypper repos --sort-by-priority

7. To list the available patterns, use:

# zypper patterns

8. To install them, use:

# zypper install --type pattern [pattern]

9. You can add repositories with the addrepo parameter, for instance: To add a community repository for the latest PowerShell version on LEAP 15.0:

# sudo zypper addrepo \
  https://download.opensuse.org/repositories\
  /home:/aaptel:/powershell-stuff/openSUSE_Leap_15.0/\
  home:aaptel:powershell-stuff.repo 

Filed Under: Linux, SuSE Linux Enterprise

Some more articles you might also be interested in …

  1. UbuntuDDE new upcoming Linux distribution
  2. How to Move Swap From Disk Partition to LVM Volume in Linux
  3. SLES 12: Database Startup Error with ORA-27300 ORA-27301 ORA-27303 While Starting using Srvctl
  4. qm wait Command Examples in Linux
  5. asterisk Command Example
  6. CentOS / RHEL : How to change the UUID of the filesystem
  7. ASMLib-Managed Disks on Multipathed iSCSI Targets are not Discovered after Server Reboot in CentOS/RHEL 7
  8. How to use wget to download file via proxy
  9. Linux OS Service ‘yppasswdd’
  10. iostat Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright