返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
Windows

2024, Some Practices for Improving the Windows Development and Usage Experience - Package Managers Part

Windows Package Manager? Scoop is open-source and customizable, Winget is the official but so-so option, and WingetUI with its graphical interface finally spares us the hassle of manual fiddling. Efficiency boost? Humph, at least it’s no longer the exclusive domain of niche Linux enthusiasts.

曦远 (DealiAxy)约 18 分钟
目录11 个章节

Preface

The brief Chinese New Year holiday flew by, and another busy year is about to begin 🔛

The previous article discussed using the Linux desktop 🐧 as my primary system in 2024 and received attention from many friends.

However, the Linux desktop remains a niche hobby after all, and the mainstream system is still Windows. As the saying goes, "A craftsman must first sharpen his tools to do his work well." This article compiles some software tools and tips to enhance your Windows user experience and productivity 🔝

Package Manager

For those who have used macOS or Linux, you've likely heard of package management tools. Through package managers, you can quickly and automatically install, configure, uninstall, and upgrade software directly in the terminal, without needing to download installers from the web and manually step through the installation process yourself. (If you search using Baidu, you'll often be redirected to various messy advertising software sites, and you might accidentally download modified rogue software 💢)

This is incredibly useful for installing a large number of software at once, significantly saving time and effort required for software installation, while also ensuring a certain level of security for the software source. 🔒

Back in the Windows 7/8 era, the lack of similar package management tools meant the Windows development ecosystem was quite barren. However, in the Windows 10 era, the situation improved. As Microsoft embraced open source and became more open—although Windows has also acquired a certain "curry flavor" (referring to Indian developers' influence)—the Windows development experience has become vastly better than before. With Microsoft officially participating, tools like WSL and Windows Terminal, along with various productivity tools, have emerged endlessly. You could say that the good times have arrived. 👍

Package managers are divided into two categories: official package managers and third-party ones. The official one is called winget, while third-party options include Chocolatey and Scoop 🧼

In the Linux system context, the official winget is equivalent to apt in the Debian ecosystem; the tools within it are all reviewed and available in the Microsoft Store.

Third-party ones like Scoop are similar to the AUR in the Arch ecosystem, where the software is packaged and maintained by the community.

I personally prefer Scoop because it offers a high degree of customization. I use winget as a supplement; if Scoop doesn't have a piece of software, I then go to winget to install it.

Installing winget

winget supports Windows 10 version 1809 and later.

You can install it through the Microsoft Store or download the installer manually from GitHub.

Store Installation

Installing through the Store is recommended for convenience.

Open the Microsoft Store, search for "App Installer", and click Install. This is not only the simplest method but also the most convenient, as winget will automatically update to the latest version with Microsoft Store updates.

Manual Installation

If you cannot download through the Microsoft Store, you can manually download the winget installer directly from the official winget-cli GitHub repository.

Unlike traditional exe files, this is a Store application. Due to security restrictions, Windows 10 does not allow installing Store apps from unknown sources by default. You need to go to System Settings > "Update & Security" > "For developers" and turn on "Developer mode" to allow app installation from any source.

Download page: https://github.com/microsoft/winget-cli/releases

Here, you need to select and download the file with the .appxbundle extension and double-click to install.

image

Installing Scoop

This is my favorite Windows package manager. Chocolatey is also good to use, but it's closed-source, while Scoop is completely open-source.

Official website: https://scoop.sh/

According to the instructions on the official website, you can install it by opening PowerShell in administrator mode and executing the following commands.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Configure scoop

Scoop has very flexible configuration options, such as setting up aria2 for download acceleration, but I'm too lazy to tinker with it. The default speed is already very fast.

I just configured a proxy.

scoop config proxy 127.0.0.1:7890

Actually, by default, scoop uses the system proxy, but I still prefer to configure it.

Using Package Managers

winget and scoop are quite similar in usage.

Use search to search for packages.

Use install to install packages.

For more detailed usage, you can refer to their official documentation. I have also found a few good reference materials here, which you can take a look at.

Package Manager GUI

Someone mentioned here that using Windows is precisely because they don't want to type commands, so why go back to that?

OK, then let's also arrange a graphical interface package manager, all right 👌

In fact, the Microsoft Store is a graphical package manager; it's just done so poorly, often failing to load or crashing, so I won't recommend it.

What I recommend here is an open-source project, WingetUI. As the name implies, it's a GUI for package managers. It's quite powerful—it doesn't just manage the package managers mentioned in this article but can also manage packages for some programming languages, such as Pip, Npm, .NET Tool, and PowerShell Gallery, which is really 6️⃣

Project address: https://github.com/marticliment/WingetUI

Installation is also very easy. On the basis that we already have a package manager, it only takes one command to get it done.

winget install SomePythonThings.WingetUIStore

Or use scoop

scoop bucket add extras
scoop install extras/wingetui

It's very convenient to use. Here's a screenshot taken from the official website.

Explore the specifics on your own; using a graphical interface has zero cost.

References

Summary

The next part will continue introducing the RIME input method.

_EOF_

2024, Some Practices for Improving the Windows Development and Usage Experience - Package Managers Part

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

IT之家学院:让你的Win10桌面比macOS还简洁漂亮高大上

感谢IT之家网友 yiyueduzui 的原创投稿 直奔主题,先给大家看看我的电脑桌面: 有人开始骂了:你特么逗我呢?这明明就是一张图片好不啦! 我读书那么多,怎么会骗你,这真的是我的电脑桌面,不还有个桌面数字时钟呢嘛!论简洁,还有谁? 那这啥都没有,要怎么用啊? 看好啦,当我的鼠标移动到屏幕下方的时候, 出现了一个Dock栏,跟苹果系统的一样一样的。 有些图标其实是一个目录或者文件夹,当它展开的

2021-12-18 · Windows · 约 1 分钟

IT之家学院:让Win10文件管理器的详细信息窗格显示更多信息

当你在Windows的资源管理器中将详细信息窗格设置为可用,然后选中一个文件时(IT之家小编选中了一个exe文件),你将在窗口的右半部分看到这个文件的一些信息,包括修改日期、创建日期、文件大小和可用性,不过对于一些用户来说,这些信息十分有限,还是不够详细。 在这篇文章中,IT之家将为大家演示如何进行设置,以使文件资源管理器可在详细信息窗格中显示更多的关于已被选中的文件的有用信息。 下文中的方法适用

2021-12-18 · Windows · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…