choco icon indicating copy to clipboard operation
choco copied to clipboard

install - pin package during installation

Open CWempe opened this issue 8 years ago • 2 comments

I just found out about chocolately and I think this is a great project!

Reading the issues here, I thought of a feature request.

I think it would be great if you could "pin" a package directly during (after) the installation.

Instead of

choco install googlechrome
choco pin googlechrome

something like this choco install googlechrome --pin

This would especialy come in handy when installing a list of packages via package.conf.

    <?xml version="1.0" encoding="utf-8"?>
    <packages>
      <package id="googlechrome" pin="true" />
    </packages>

Then again this might be obsolet (in some cases) when https://github.com/chocolatey/choco/issues/242 gets implemented.

CWempe avatar Jun 14 '16 12:06 CWempe

@CWempe I believe this has been discussed before and it's a pretty great idea! I'm surprised that there wasn't already an existing ticket (I searched), perhaps from the prior discussions one was not created.

ferventcoder avatar Jun 14 '16 15:06 ferventcoder

Any change in this area will require an upstream change in the chocolatey.extension to ensure that any and all new logic is respected there.

gep13 avatar Dec 23 '21 09:12 gep13

A follow up spike task has been created to confirm that this functionality continues to work as expected when the Chocolatey Licensed Extension is installed: https://gitlab.com/chocolatey/collaborators/choco-licensed/-/issues/631

gep13 avatar Aug 25 '22 15:08 gep13

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket:

AdmiringWorm avatar Oct 20 '22 10:10 AdmiringWorm