After removing ghc (glasgow haskell compiler) files, update wants to reinstall them

Yesterday I deleted all the ghc (glasgow haskell compiler) files as I don’t ever recall using them, although I must have, and there were a hundred or more installed and taking up space.

Today, “sudo zypper dup” wishes to reinstall 186 of them. In removing them I got no messages indicating that I was removing a critical dependency of any process.

What process might be asking that these be reinstalled?

thanks, tom kosvic

Not a process, you have a pattern installed that requires them. So you have to find out which one, and uninstall the pattern package.

I went through all my installed patterns and saw none that included ghc. In fact I saw no pattern at all that included ghc.

thanks, tom kosvic

Then something recommends it. I tend not to mess around with them, number of packages doesn’t mean a thing, diskspace is a very relative concept when one looks at the average package size.

Do you have pandoc-cli installed? This is one of the packages which pulls in alot of ghc packages unless you use --no-recommends. There are other threads which explained that.

I do not have pandoc.cli installed as determined by a zypper search. I was just doing some tidying up and saw and removed the ghc files but I will reinstall the “new” ghc files that zypper wishes to as I have plenty of disk space.

thanks, tom kosvic

Just one strange thing, zypper installed 186 ghc labeled files but did not install the main ghc compiler module itself. So I really have no idea of what is calling for these packages.

tom kosvic

  1. Maybe run this:
> sudo zypper se --requires <ghc-package-name>

... or maybe:
> rpm -q --whatrequires <ghc-package-name>

I don’t think either command is telling me anything.

(base) tom@mydesktop: ~ $ sudo zypper se --requires ghc-yaml
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...

S  | Name           | Summary                                | Type
---+----------------+----------------------------------------+--------
   | ghc-yaml-devel | Haskell yaml library development files | package
   | ghc-yaml-prof  | Haskell yaml profiling library         | package

    Note: For an extended search including not yet activated remote resources please use 'zypper
    search-packages'.
(base) tom@mydesktop: ~ $ rpm -q --whatrequires ghc-yaml
no package requires ghc-yaml
(base) tom@mydesktop: ~ $