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

Add an option -R for purge (only remove is used) #1036

Open
Xdavius opened this issue Feb 1, 2024 · 3 comments
Open

Add an option -R for purge (only remove is used) #1036

Xdavius opened this issue Feb 1, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request triage Priority not yet decided

Comments

@Xdavius
Copy link

Xdavius commented Feb 1, 2024

Is your feature related to a problem? Please describe.

When I pacstall -R, packages are still present in dpkg db. If version was different from the system, it can mess if a pkg is a dependency from an other.
Using an apt autopurge after doesn't clean dpkg and I still have the package in DB and conf files on my system.

A clear and concise description of what you want to happen.

Please, I will be pleased if you can add -Rns mode from pacman/yay option to use purge/autopurge from pacstall and clean dpkg while uninstalling pacstall pkg.

Consider add a question in remove.sh

-PRns should work as autopurge
-PRn should work as purge
-R should work as remove

Describe alternatives you've considered

I have edited manualy remove.sh using purge as default

Additional context

No response

@Xdavius Xdavius added enhancement New feature or request triage Priority not yet decided labels Feb 1, 2024
@Elsie19
Copy link
Member

Elsie19 commented Feb 12, 2024

The -P flag is used for promptless commands, so we can't use that.

@Xdavius
Copy link
Author

Xdavius commented Feb 12, 2024

The -P flag is used for promptless commands, so we can't use that.

I was speaking about -P previously for my own exemple. (-P could be changed to -y (for yes word) like apt ? It should be easier for users to remember)

The flag I suggest could be -Rn or

I have some trouble with dependencies these days that flag xfce-goodies no more needed.

Wrapping autopurge isn't a good idea. Could be dangerous, and can be performed with apt

But a way for only purge should be very useful .

@oklopfer
Copy link
Member

The -P flag is used for promptless commands, so we can't use that.

Few alternate ideas:

  1. -U and -Up are distinct, so -P could be promptless and -Pg or -Pr for purge

  2. A second conditional flag for -R or -PR that one could pass like --purge, --full, --force, or --complete

  3. Take the --full/--force/--complete idea and just make a generic flag for pacstall -F/-C that will do various things more forcefully depending on what action it is, so in the case of -R, -FR would purge, aka full-remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Priority not yet decided
Projects
None yet
Development

No branches or pull requests

4 participants