DEV Community

Cover image for [PT-BR] Quer Chocolatey?
João Paulo de C. Lima
João Paulo de C. Lima

Posted on

1 1

[PT-BR] Quer Chocolatey?

Fala, galera! Beleza?
Já ouviram falar do Chocolatey?
Não?
Então vou lhes apresentar…

Alt Text

Chocolatey é uma solução de gerenciamento de software para Windows (parecido com o NPM do NodeJS ).

Para instalá-lo é muito simples. Você pode utilizar o CMD padrão ou o PowerShell. Obs: certifique-se de estar como administrador.
Vamos começar pelo CMD:
1 – Copie e cole o seguinte comando:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Enter fullscreen mode Exit fullscreen mode

2 – Se não apareceu nenhuma mensagem de erro, basta digitar

choco
Enter fullscreen mode Exit fullscreen mode

ou

choco -?
Enter fullscreen mode Exit fullscreen mode

Agora, pelo PowerShell :
1 -

  Run Get-ExecutionPolicy 
Enter fullscreen mode Exit fullscreen mode

Caso o retorne uma mensagem "Restricted", então execute

 Set-ExecutionPolicy AllSigned 
Enter fullscreen mode Exit fullscreen mode

ou

Set-ExecutionPolicy Bypass -Scope Process 
Enter fullscreen mode Exit fullscreen mode

2 – Agora, copie e cole o seguinte comando:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Enter fullscreen mode Exit fullscreen mode

3 - Se não apareceu nenhuma mensagem de erro, basta digitar

choco

ou

choco -?

Para instalar algum software via Chocolatey, basta digitar

choco install <nomedopacote>

Você pode pesquisar pelos softwares disponíveis nesse link.

Para mais informações, acesse o site oficial do Chocolatey.

Muito obrigado pela atenção!
Até mais!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay