Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Unlist all versions of a package

    Scheduled Pinned Locked Moved Support
    proget
    10 Posts 2 Posters 56 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      We have changed the names of several of our internal Nuget packages. I don't want ProGet to list the packages with the old names any more, so I tried to hide them by using the "unlist package" command from the package details page. However, that seems to only unlist a specific version. Now I don't want to manually unlist every single version of all of our packages. How can I unlist all versions of a package without removing the package from the feed? (builds of older versions of our software still need to find the old packags, so I cannot simply remove them)

      Product: ProGet
      Version: 3.8.0

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Your best bet would to use the API to do this.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          That is not very intuitive. Surely that package admin screen should unlist all versions of a package.
          Will this be addressed at any point?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            It's hard to say; there hasn't been much interest in this feature at all because it's a very rare requirement (one doesn't have to unlist all versions that often), and it's trivially simple to do with a script using the API.

            A utility script to do this could be helpful -- please do share if you end up writing one in PowerShell.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              I have exactly the same problem - is there a solution now?

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                This would really be solved best with a PowerShell script of sorts; it would just iterate the NuGet Packages using the regular NuGet/ODATA api. But unfortunately I'm not able to write one at the moment.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Ok, thanks. I solved it using SQL:
                  UPDATE [ProGet].[dbo].[NuGetPackages] SET Listed_Indicator = 'N'
                  WHERE Package_Id = 'MY.ID'

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    +1 for this feature, how hard can it be to implement...

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      I've added a feature request for Proget 5.1 for this PG-1200

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        VWagner_2536
                        last edited by

                        Version 2022.24 (Build 5) has an option to unlist all packages on an ID.
                        ProGet.NuGet.Unlist.png

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation