I noticed in zypper a while bunch of packages for ghc
and upon lookin it up i was kind of confused, is this a depenency for something? how can i check?
zypper se --requires ghc
https://en.opensuse.org/SDB:Zypper_manual_(plain)
It is a programming language and compiler with different usecases…
It is shipped by many linux distributions, as additional programming language.
is it safe to uninstall?
What do you mean with “save”?
If it will hurt you depends on why you installed it.
With the provided man page you should be able to figure that out yourself…
Normally ghc is not installed by default, so you either decided to install it or have chosen a pattern.
You can check which ghc packages are installed:
zypper se -i ghc*
Then check if one of the listed packages is required by any other:
zypper se --requires <ghc-package-name-here>
If you don’t need them, remove them…
Unless you are a developer who programs/compiles in Haskell you shouldn’t need them…
pandoc-cli depends on ghc-pandoc as example…
zypper is doing somethingn strange…
_40476@localhost:~> sudo zypper rm ghc
[sudo] password for root:
Reading installed packages...
'ghc' not found in package names. Trying capabilities.
No provider of 'ghc' found.
Resolving package dependencies...
Nothing to do.
_40476@localhost:~>
BUT IT LITERALLY SAYS :
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+---------------------------------------------+-----------------------------------------------------------------------------------+--------
| ghc | The Glorious Glasgow Haskell Compiler | package
(I had to cut most of the deps out of the snippet since it was too big for the post)
ghc is not installed. So what is the question?
And please don’t cut your terminal output. Always post the initial command. We can’t see which command triggered the second output…
If the terminal output is to long for the forum, use https://paste.opensuse.org/ and provide the link. Don’t forget to uncheck “Private”
As already noted by @hui , you only posted some vague conclusion. No command and output shown. How can anybody have any idea about what you saw where? Let alone give some useful comment on it.
https://paste.opensuse.org/pastes/e19a2567b5ad
command used :
_40476@localhost:~> zypper se --requires ghc >>u.txt
See
And IF you want to remove all ghc packages you need to use wildcards:
zypper rm ghc-*
As the wild card needs to reach zypper as part of the argument and should be protected from being interpreted by the shell, I suggest to improve this into
zypper rm 'ghc-*'
thanks, that did the trick.
We do not provide “tricks”. We provide serious information.