1

Suppose I have my Debian package (ex. mypackage) that strongly depends on openssl >= 1.0.2 (has Depends: libc6 (>= 2.17), openssl (>= 1.0.2) in its control file). When I am trying to remove openssl out of my system, I see mypackage marked to remove:

The following packages will be REMOVED:
mypackage ca-certificates openssl python3-requests ssh-import-id

Maybe, I see a bit of logic in a such behavior, but can't see any proof of exact reason why does apt choose mypackage to remove and how am I supposed to prevent it.

closed as off-topic by Stephen Kitt, Jeff Schaller, Mr Shunz, Anthony Geoghegan, Christopher Jan 30 at 20:56

  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    How would you use mypackage without having openssl installed? What would be the point of keeping packages whose functionality depended on openssl installed? – Kusalananda Jan 28 at 12:44
  • @Kusalananda, as I said - I think, there is a bit of logic here. But why doesn't apt remove other packages dependent on openssl except listed ones in OP? – VladislavTepes Jan 28 at 12:47
  • 3
    What other packages do you expect apt to remove? It’s removing ca-certificates which depends on openssl, and python3-requests and ssh-import-id which depend on ca-certificates. If you expect all packages depending on OpenSSL (the project) to be removed, you probably want to remove libssl1.0.2 as well; openssl only contains the client tools, not the OpenSSL library itself. – Stephen Kitt Jan 28 at 12:50
  • Sorry, I was mislead - apt-get remove openssl DOES remove installed packages dependent on openssl. – VladislavTepes Jan 29 at 5:21
  • 4
    I'm voting to close this question as off-topic because it was based on a misunderstanding. – Stephen Kitt Jan 30 at 9:36