Questions tagged [zypper]

Zypper is a command line package manager, which makes use of libzypp.

Zypper is a command line package manager, which makes use of libzypp, providing functions like repository access, dependency solving, package installation, etc.

YaST2 and RPM MetaData package repositories are supported. Zypper repositories are similar to the ones used in YaST, which also makes use of libzypp. Zypper can also handle repository extensions like patches, patterns and products.

http://en.opensuse.org/Portal:Zypper

71 questions
13
votes
6 answers

Reverse dependency generation with zypper

With zypper, I can get package A depends on package B. However, what I need to know is which packages depend on package B. Is there a way of generating a reverse dependency list?
user626201
  • 1,623
  • 3
  • 19
  • 36
10
votes
4 answers

Is it posssible to add default repository/repositories to SLES when the original repository is unavailable?

I've got a SLES server installed by someone who is not available. I've checked /etc/zypp/repos.d , there is a repo file SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109.repo It's content is: [SUSE-Linux-Enterprise-Server-11-SP4…
quantummind
  • 2,086
  • 1
  • 14
  • 20
8
votes
1 answer

openSUSE zypper error - Valid metadata not found at specified URL, Repository type can't be determined

I have an RPM repository running on JFrog Artifactory. It's being used by CentOS and RHEL hosts, and I would also like to use it with my openSUSE hosts. This documentation from JFrog does not explicitly say that only yum clients are supported, and…
Lester
  • 1,411
  • 1
  • 12
  • 30
6
votes
1 answer

zypper list files in non-installed package

Using zypper search, I can find the package. I know that I could use rpm -qlp to list the files, but I don't have it; since it is in one of the zypper repositories. Is there something like this? zypper list-files-in NOTE :…
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
4
votes
2 answers

zypper update package to the previous version (not the last)

How do I update (not install) an package pmc-rpm from repository myRepo to version 10.3.3-1 (but not to the last one!) in SUSE 10.1 command line (zypper)? So I update the package normally, but this time I have to install the pre-previous package and…
user72394
  • 101
  • 1
  • 1
  • 6
3
votes
1 answer

Does zypper support wildcards for versions?

Using zypper, is there some way to install a version using the a wildcard or something similar? # zypper install A=0.13.* Loading repository data... Reading installed packages... 'A=0.13.*' not found in package names. Trying capabilities. No…
user2569618
  • 517
  • 3
  • 16
  • 42
3
votes
1 answer

zypper add repository and enable refresh on one line

When I add a repository using zypper: zypper ar name then I have to do zypper lr check the number of the repository and enable autorefresh: zypper mr -r 2 Can't I do all this in one line?
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
2
votes
0 answers

Manage repo size by removing obsolete package versions

We have a custom Suse Linux Enterprise repository, that we want to ship to customers in the future. In there right now are a lot of different versions of the same packages, some obsolete and some needed as a dependency for other packages, so the…
lstognu
  • 21
  • 2
2
votes
1 answer

zypper: command not found in SUSE linux

I was not aware that zypper is like yum for SUSE. I deleted that file from bin, now I am not able to install any application through it. I throws an error that sudo: zypper: command not found How do I install zypper back and make it work like as…
Nitesh kumar
  • 348
  • 2
  • 8
  • 25
2
votes
1 answer

Zypper repository authentication (non-interactive)

I need to add a repository using zypper that requires authentication from a Dockerfile. I'm able to add it, but of course, when I try to run zypper -n refresh It fails because the authentication failed. What is the normal approach to automate the…
amp
  • 11,754
  • 18
  • 77
  • 133
2
votes
0 answers

Using SaltStack's State Modules to Accept Newly Added Repo's Package Signing Key

Problem On a standalone minion, salt.states.pkgrepo.managed is being used to add a non standard software repo. The problem that's occurring, is that when a following sudo zypper update runs, the key has not been (auto) accepted by the system,…
DanCat
  • 2,504
  • 2
  • 19
  • 26
2
votes
3 answers

rpm reinstall does not reinstall config files?

I have an rpm with a file marked as config file in the %files section: %files %config /path/to/file.conf now suppose I edit this file on-disk. I wish to repair this and redo a clean install of the package; thus restoring the config file to its…
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
1
vote
2 answers

Perl Net Interface and Perl newt in openSUSE

We have some perl script which are working fine in centOS 7. Now I trying to run the same scripts in openSUSE.But I could not find perl Net Interface and perl Newt packages in openSUSE. can anyone please help how to install those packages? Can't…
1
vote
1 answer

Ansible on SLES: zypper plugin not able to install PostgreSQL 14

I am trying my hand on Ansible after having a very nice training in it. Currently, my task is to create a playbook that sets up a PostgreSQL cluster (with Patroni and etcd). However, while installing PostgreSQL should be a pretty easy task, doing it…
0xCAFEBABE
  • 5,576
  • 5
  • 34
  • 59
1
vote
1 answer

Given a path, find the zypper package and the repository

I'm using SUSE12SP5 system. Given a path, I'm trying to get it's package. So for example, for etc/ssh/ssh_config I want to get openssh. For that I use the following command: > rpm -qf --queryformat "[%{NAME}]" /etc/ssh/ssh_config openssh So…
vesii
  • 2,760
  • 4
  • 25
  • 71
1
2 3 4 5