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
-
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
-
Your best bet would to use the API to do this.
-
That is not very intuitive. Surely that package admin screen should unlist all versions of a package.
Will this be addressed at any point?
-
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.
-
I have exactly the same problem - is there a solution now?
-
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.
-
Ok, thanks. I solved it using SQL:
UPDATE [ProGet].[dbo].[NuGetPackages] SET Listed_Indicator = 'N'
WHERE Package_Id = 'MY.ID'
-
+1 for this feature, how hard can it be to implement...
-
I've added a feature request for Proget 5.1 for this PG-1200
-
Version 2022.24 (Build 5) has an option to unlist all packages on an ID.