Need to uninstall a package with all its dependencies.

Hi,

I am using Leap 15. By mistake installed Firejail from the tumbleweed repos,

Now I want to uninstall Firejail with all its dependencies which it had pulled from

the tumbleweed repos.

Whats the command ?

zypper remove --clean-deps firejail

should do the job; adding the --dry-run option you can see what is going to be done without actually touching your system.

Also, search “/var/log/zypp/history” for everything which occurred during the installation of the packet you no longer wish to have on your system.

  • This is needed to check that all the chained dependencies which happened at installation time have in fact been found by the ‘zypper’ command …

I am getting this

# zypper remove --clean-deps firejail
Loading repository data...
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  firejail

1 package to remove.
After the operation, 1.3 MiB will be freed.


That “no repositories defined” seemed strange. So I ran a test, and got that same message. It looks as if you can ignore that message.

It should be okay to just go ahead and use that command, and answer “y” when asked whether to proceed.

Okay / Thanks