Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenBSD's pkg_* for cleaning orphaned packages. #708

Closed
Izder456 opened this issue Feb 21, 2024 · 2 comments · Fixed by #753
Closed

Support OpenBSD's pkg_* for cleaning orphaned packages. #708

Izder456 opened this issue Feb 21, 2024 · 2 comments · Fixed by #753
Labels
C-feature request New feature request

Comments

@Izder456
Copy link
Contributor

Izder456 commented Feb 21, 2024

What

I want to suggest a new clean step for OpenBSD.

Which tool is this about?

OpenBSD's pkg_*

Where is its repository?

not applicable

Which operating systems are supported by this tool?

OpenBSD

What should Topgrade do to figure out if the tool needs to be invoked?

  • check if System Type is OpenBSD
  • check if -c switch is flipped or topgrade.toml has autoclean enabled.

Which exact commands should Topgrade run?

pkg_delete -a

I can self-assign here if possible- I would be willing to implement this functionality myself when I get the chance.

@Izder456 Izder456 added the C-feature request New feature request label Feb 21, 2024
@SteveLauC
Copy link
Member

I can self-assign here if possible- I would be willing to implement this functionality myself when I get the chance.

Please go ahead ❤️

@Izder456
Copy link
Contributor Author

Izder456 commented Mar 26, 2024

necrobump sorry

working on now.

adding -c as well, which cleans config files as well, like apt purge:

from the manpage:

-c Delete extra configuration file, mentioned as
   @extra file
   in the packing-list.

SteveLauC pushed a commit that referenced this issue Mar 26, 2024
FIXEs #708: add config directive for pkg_* cleanup on OpenBSD
InnocentZero pushed a commit to InnocentZero/topgrade that referenced this issue May 25, 2024
…BSD (topgrade-rs#753)

FIXEs topgrade-rs#708: add config directive for pkg_* cleanup on OpenBSD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature request New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants