kandi X-RAY | chocolatey.org Summary
kandi X-RAY | chocolatey.org Summary
chocolatey.org
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of chocolatey.org
chocolatey.org Key Features
chocolatey.org Examples and Code Snippets
Community Discussions
Trending Discussions on chocolatey.org
QUESTION
Chocolatey has recently enable support for exporting all currently installed packages using choco export
command. This export includes all the packages, including the dependencies of tools that I actually care about. Is it possible to exclude these dependencies from the export?
For example, when I install Adobe Reader using choco install adobereader
, it also installs kb2919355
as well since that's a dependency for Adobe Reader now. But I don't want kb2919355
to be listed in the exported packages.config because dependencies might change in the future and the dependencies will anyways be installed even if its not specifically mentioned in the list.
ANSWER
Answered 2021-Oct-29 at 19:18I don't believe Chocolatey keeps track between what was automatically installed as a dependency, and what you have manually installed. It gets evaluated at install time of course but it all goes into Chocolatey's lib
or lib-bad
folder depending on package installation success or failure respectively. This is the extent of package installation tracking, at least in the free version (I can't speak to the administration of the licensed versions).
In other words a package is either present or absent, not "manually installed" or "automatically installed as a dependency of X, Y, and/or Z packages".
To this point you should have a solid understanding of your top-level software requirements at least, so do a choco export
, then remove dependency packages from packages.config
accordingly. Alternatively, you can create your own packages.config
and simply don't rely on choco export
to create the file for you in the first place.
Note: This is more meant to be a quick backup solution of the package state of a machine; what you are trying to do is replace a proper configuration management solution with Chocolatey, which not a tenable or scalable solution long term. I suggest learning a real config management tool to manage machine state long term rather than relying on
packages.config
since package installation is really only one piece of configuration, while continuing to use Chocolatey to manage package/software installations from said config management solution.
QUESTION
I am trying to get a Github Action working with Windows and Bakeware because I am trying to create a release using it.
However, I am having an unexpected issue with creating folders.
CodeFollowing is a github action that is a Minimal Working Example of the issue. Basically, all steps work, except for the creation of a single folder:
...ANSWER
Answered 2022-Feb-04 at 09:25After smashing my head against a wall for several days, I think I finally figured it out.
The command was failing because of how cmd mkdir
behaves, in that, it behaves different from the one in poewrshell.
By changing the Makefile
to only create folders if they don't exist already, I was able to fix the issue while still mantaining backwards compatibility, which was one of my requirements.
I have submitted a PR with this fix and at the time of this writing, I am happy to announce it was already merged into master:
QUESTION
I am trying to get a Github Action working with Windows and Bakeware because I am trying to create a release using it.
However, I am having issues with the environment variables.
CodeIn Bakeware's setup page it is mentioned that we have to set the MAKE
and CC
environment variables:
In my Github Action, that is exactly what I do (I think):
...ANSWER
Answered 2022-Feb-04 at 09:18The environment vars, in this case, were being correctly created and set. The problem was more deep, it was related to the library itself not being able to create needed folders.
Because the make
tool used by the library needed these folders, the tool crashed itself and reported as such, thus making me believe there was an issue with my environmental setup since I was getting the error:
QUESTION
I try to migrate a process from one azure devops org to another with the Azure DevOps Migration Tool.
In the answer for this question it is said if you run this command migration.exe init --options Full
you get the complete configuration options that are available. But in the created configuraition file I can't find a processor for the process migration.
In your GitHub documentation there are hints that it should be possible, so I am a little confused.
Are they diffrent versions on GitHub and Chocolatey?
If I compare the version number and the release date (on the sites) then it seems they have the same version.
In the code from GitHub I found the ProcessDefinitionProcessor and tryed to find the correct configuration. At the end i got this error:
...ANSWER
Answered 2022-Feb-01 at 22:22The Azure DevOps Migration tools does not migrate the Process, just the Work Items.
You can use the Microsoft project process-migrator
to migrate the process.
QUESTION
Attempts to upgrade Chocolatey fails for me:
...ANSWER
Answered 2022-Jan-01 at 12:59Seems like it's just a typo - the product is called Chocolatey (with an e before the y - not an "a") - so try this:
QUESTION
@echo off
color 06
title created by AAIE
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install youtube-dl
set /p input="Enter Link For Playlist:"
set /p index="Enter Index For videos Seprated by ',':"
mkdir playlist_videos
cd playlist_videos
youtube-dl --playlist-items %index% %input%
...ANSWER
Answered 2021-Dec-02 at 13:49Here are some examples using where
to locate and perform actions based on the result:
QUESTION
I am on a Windows machine and I am looking to install the latest version of elixir in it. This is being harder than expected.
ResearchInitially I searched for something similar to asdf for Windows, but there is nothing similar for this platform. Scoop is the tool that comes closest, but it requires me to do custom scripts and to learn another tool, both things I am not a fan of right now:
https://elixirforum.com/t/elixir-version-manager-for-windows/39399/5
Then I turned to chocolatey:
https://community.chocolatey.org/packages?q=elixir
Which looks perfect, but it is severely outdated, being only in version 11.X No signal of any updates to come, so this one is out as well.
My last hope, is perhaps Docker …
https://hub.docker.com/_/elixir
It looks like there is a version of 12.X, which hopefully uses OTP 24 (my goal):
...ANSWER
Answered 2021-Sep-21 at 04:18Sorry I don't have personal experience with Elixir on Windows, but quoting the instructions from the official site:
- Download the installer
- Click next, next, …, finish
From the installer README:
- Downloads and installs the latest Elixir version, or another version the user selects
QUESTION
We have Docker installed on Windows Server 2016. The application we have is in .NET 5.0 using VS 2019 IDE. I couldn't get Docker container up and running using below code. The installation of VS 2019 build tools fails. Any help is highly appreciated.
Things I tried:
- Installing .NET 5.0 (sdk/runtime) seems to be successful but the dotnetfx (exit code 3010) requires reboot which is the root cause. Because of this pending reboot, the installation of VS 2019 build tools fails.
- I tried using other images but getting daemon related error. Looks like I am unable to find Docker image which has .NET 5.0 installed for windows server 2016 host
DockerFile:
...ANSWER
Answered 2021-Oct-27 at 12:52I don't know how choco handles the installation of VS Build Tools so I can't say for sure how to avoid the restart requirement.
However, you should be able to avoid creating your own image and instead use the existing mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2016
image. This actually provides everything you need:
QUESTION
When I write the command choco install 'Name'
This is what happened:
...'Name' not installed. The package was not found with the source(s) listed. Source(s): 'https://chocolatey.org/api/v2/' NOTE: When you specify explicit sources, it overrides default sources. If the package version is a prerelease and you didn't specify
--pre
, the package may not be found. Please see https://chocolatey.org/docs/troubleshooting for more assistance.
ANSWER
Answered 2021-Aug-30 at 15:33Most likely, it's because you're doing this from the Command Prompt, and wrapping the package name in single-quotes. Remove the single quotes and it should work. If this doesn't work or you are using PowerShell as your CLI, then read on for some config troubleshooting steps.
Check that the package exists in one of your configured repos:
QUESTION
Starting with micro and everything works fine. I dont have VisualStudio, but instead I have make
through chocolatey(dont know if could be the issue)
I bootstrap the service with micro new
like this.
ANSWER
Answered 2021-Sep-11 at 02:43After some reading of the basics I found the problem. Even if the proto file is generated by micro this code service Proto.Test
at line seven is the problem, because of the dot. I mean, replacing that for service Test
solved the issue. Now I dont know why. Any explanation would be preciated. I am in windows by the way
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chocolatey.org
Before starting, you will need: Node.js and npm installed globally choco install nodejs-lts -y refreshenv - if it says refreshing for cmd.exe, you have to close and restart PowerShell and navigate back to the folder (you need to install the PowerShell profile - reference the troubleshooting page at https://chocolatey.org/docs/troubleshooting) npm install gulp -g A local running instance of SQL Server and Visual Studio 2013 or above choco install sql-server-management-studio mssqlserver2014express -y (you may find a newer version of SQL Server Express)
In Visual Studio, open ChocolateyGallery.sln. Note if you already had this open, close it and reopen it so that it can know where npm and gulp are located - that is necessary for the build to succeed.
In the Website project, open web.config
Locate the connectionStrings section, and modify the NuGetGallery connection string to point to your local instance of SQL Server. It's not a bad idea to change the database name (initial catalog) just to avoid confusion. For example if your SQL Server instance is named SQL2016, you could use: <add name="NuGetGallery" connectionString="Data Source=.\SQL2016;Initial Catalog=Chocolatey;Integrated Security=SSPI;MultipleActiveResultSets=False;" providerName="System.Data.SqlClient" /> Note: the database does not need to exist
Open the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console)
If prompted, restore any missing NuGet packages (Don't use nuget restore from the command-line as this will pull in extra packages that cause the build to break)
Run the Update-Database command in Package Manager Console (if the command is not found, try reloading the solution in Visual Studio)
The database named in the connection string should now exist in your SQL Server.
Press F5 to start the web application
You may experience an error of The CodeDom provider type Microsoft.VisualC.CppCodeProvider could not be located. This is due to what Visual Studio thinks are header files in the chocolatey\Website\node_modules folder. Make that hidden (just the top level node_modules folder).
Press F5 to start the web application
Your web browser should launch, showing the Chocolatey home page
Head to Find Packages and then sign up, entering details to create a new account
To make this account an administrator, run the following SQL against your new database eg. Use SQL Server Management Studio or sqlcmd from the command line. Note: Replace 'username' with the name of the user account you just created
You should now be up and running!
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page