在 Windows 11 或 10 上下载和安装 Slack 的命令
admin
2023-07-31 10:27:18
0

在 Windows 11 或 10 上安装 Slack 的命令

尽管可以通过 Microsoft Store 或直接从其官方网站下载适用于 Windows 的 Slack 可执行安装程序来安装 Slack。但是,对于那些有兴趣使用命令行终端执行相同操作的人,这里是要遵循的步骤。

#第一种方法:

使用 Winget 命令行下载 Slack

Windows 10 和 11 已经有一个 Microsoft 创建的名为Winget 的包管理器。我们可以使用命令行界面安装各种流行的软件包或应用程序。因此,要在 Slack 安装中使用相同的内容,请按照以下步骤操作。

1. 运行 Windows 终端或 PowerShell

根据您的操作系统运行默认的命令行应用程序。为此,只需右键单击 Windows 开始按钮并选择PowerShell(管理员)或Windows 终端(管理员)。

Run-Windows-11-Terminal-AdminRun-Windows-11-Terminal-Admin

 

2. 检查 Winget

最新版本的 Windows 10 已经有 Winget,但是,如果没有,那么只需转到Github页面并下载其安装程序。或者,您可以查看我们的Winget 文章。在的Windows 11用户不需要做任何事情,因为他们已经有了自己的系统上这个包管理器开箱。

只需键入以下命令即可在命令终端上检查其可用性:

winget

Check-Winget-installationCheck-Winget-installation

 

3. 在 Windows 10 或 11 上安装 Slack 命令

现在,我们只需要运行以下命令即可使用命令行安装 Slack 应用程序。

winget install Slack\\SlackTechnologies.Slack

当它要求您同意条款时,输入A并按Enter键。

输出

PS C:\\Users\\h2s> winget install Slack\\SlackTechnologies.Slack
Found Slack [9WZDNCRDK3WP] Version Unknown
This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user.
Version: Unknown
Publisher: Slack Technologies Inc.
Publisher Url: https://www.slack.com
Publisher Support Url: https://get.slack.help/hc/en-us
Description: Slack brings team communication and collaboration into one place so you can get more work done, whether you belong to a large enterprise or a small business. Check off your to-do list and move your projects forward by bringing the right people, conversations, tools, and information you need together. Slack is available on any device, so you can find and access your team and your work, whether you’re at your desk or on the go.

Use Slack to:
• Communicate with your team and organize your conversations by topics, projects, or anything else that matters to your work
• Message or call any person or group within your team
• Share and edit documents and collaborate with the right people all in Slack
• Integrate into your workflow, the tools and services you already use including Google Drive, Salesforce, Dropbox, Asana, Twitter, Zendesk, and more
• Easily search a central knowledge base that automatically indexes and archives your team’s past conversations and files
• Customize your notifications so you stay focused on what matters

Scientifically proven (or at least rumored) to make your working life simpler, more pleasant, and more productive. We hope you’ll give Slack a try.

Stop by and learn more at: https://slack.com/
License: ms-windows-store://pdp/?ProductId=9WZDNCRDK3WP
Privacy Url: https://slack.com/privacy-policy
Copyright: © Slack Technologies, Inc.
Agreements:
Category: Business
Pricing: Free
Free Trial: No
Age Ratings: 12
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license

The publisher requires that you view the above information and accept the agreements before installing.
Do you agree to the terms?
[Y] Yes [N] No:

 

#2 方法:

那些不想使用Winget或已经在其 Windows 7/10/11 操作系统上安装Chocolatey的用户;他们可以使用它。或者按照下面给出的命令首先安装第三方包管理器 – Choco然后是Slack

运行 PowerShell(管理员)或 Windows 终端(管理员)

就像我们在上面所做的那样,以同样的方式,右键单击 Windows开始按钮并在管理权限下运行命令行应用程序。

安装 Chocolatey Choco(如果你没有)

接下来,将下面给出的命令复制粘贴到您的 Powershell 或终端应用程序中以安装 Chocolatey 包管理器。


Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1’))


关闭并打开命令行应用程序

运行上述命令安装 Choco 包管理器后,关闭 PowerShell 或终端应用程序并再次打开它。

在 Windows 上使用 Choco 安装 Slack

现在,我们可以使用流行的choco 包管理器来安装这个消息和协作平台。

choco install slack

输出

Chocolatey-and-Winget-to-install-SlackCheck-Winget-installation

 

相关内容

热门资讯

Windows 11 和 10... Windows 11/10 文件夹属性中缺少共享选项卡 – 已修复 1.检查共享选项卡是否可用 右键...
事件 ID 7034:如何通过... 点击进入:ChatGPT工具插件导航大全 服务控制管理器 (SCM) 负责管理系统上运行的服务的活动...
Radmin VPN Wind... Radmin VPN 是一款免费且用户友好的软件,旨在牢固地连接计算机以创建一个有凝聚力的虚拟专用网...
Hive OS LOLMine... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
如何修复 Steam 内容文件... Steam 内容文件锁定是当您的 Steam 文件无法自行更新时出现的错误。解决此问题的最有效方法之...
Hive OS 部署 PXE ... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
如何在电报Telegram中隐... 点击进入:ChatGPT工具插件导航大全 在Android上的电报中隐藏您的电话号码 您可以通过切换...
farols1.1.501.0... faro ls 1.1.501.0(64bit)可以卸载,是一款无需连接外部PC机或笔记本计算机即可...
在 Windows 11 中打... 什么是链路状态电源管理? 您可以在系统控制面板的电源选项中看到链接状态电源管理。它是 PCI Exp...
如何在Instagram上扫描... 如何在Instagram上扫描名称标签/ QR? 总而言之,您可以通过大约四种不同的方法来扫描这些I...