-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feature request: pacman --needed #129
Comments
hi @Mithrandir2k18 , I have used that option. If it's supported on different platform it's easy to have the patch. Is the option Thanks |
@icy Sorry I should have titled the feature request differently. The common idea is to have a smart "omniplattform dependency install script" that won't ask for confirmation. Now arch's pacman has a A pacapt -S --needed --noconfirm dep1 dep2 dep3 That'll install all listed dependencies, ignore satisfied ones without interrupting and not ask for confirmation; and throw errors as usual if a package cannot be found. |
@Mithrandir2k18 I'm actually rewriting |
@rami3l That's a really good question and seems to be a design choice to make. Since I personally love to use pacapt to emulate pacman on distros that don't come with it, I'd prefer it adhering closely to the way pacman works; so that I can run the same install scripts on all my machines. That said, whether In short, I'd personally prefer pacapt to behave exactly like pacman, and only divert when it has a very good reason to, and if it doesn't break anything. |
@Mithrandir2k18 Thanks a lot for your reply. Now I see the need of using a single script across platforms, but it seems that we can ask similar questions about A nice thing about First I thought, for example, can I add And finally the big question becomes: is this project here to work exactly like @icy might agree with me that what we really want is just an automated version of Pacman Rosetta. PS: But at least, I can ensure that, for example, when you pass |
@Mithrandir2k18 Now I've tried to add a custom [Y/n] prompt to Update: What's more, I realized that the need of writing a single cross-platform script via So now I am actually wondering if I should remove this [Y/n] prompt to respect the original implementation of that feature in |
@rami3l If maintaining it for your project is too much work you could add an option to pass a mapping file, so e.g. if I need an apache server and the package is named X on pacman and Y on apt, I can provide a file that does the mapping based on OS. This way a user can maintain the mappings they need themselves, and if they are nice they can share it via pull requests. I also don't know if artificially adding prompts to package managers that don't have them is the right thing to do. As I personally am mostly using pacapt for scripts, I'll always add |
@Mithrandir2k18 This idea sounds interesting! Might look into it later. Thanks a lot! 😆 PS: After some tweaks I think I am OK with additional prompts added to |
Hi,
I am using pacapt to be able to have identical dependency install scripts across multiple linux distros. I also use arch, so I installed pacapt as pacman on other distros. Ideally I'd like to do something like this:
To work with pacapt as well, so I can have concise code that installs dependencies only when necessary. Also an option like
--yes
would be nice, so that installs don't ask for confirmation.The text was updated successfully, but these errors were encountered: