document/文档/linux/BaGet.md
2024-06-30 04:47:39 +08:00

29 lines
651 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 安装BaGet
## 注意事项
1. 原生的BaGet使用的是.net code 3.1版本,如果使用更高的版本,需要拉取[源代码](https://github.com/loic-sharma/BaGet),切换.net版本然后编译、发布即可。
2. 本次安装使用的是.net8
3. 修改配置项appsettings.json
```json
{
"ApiKey": "d50e3dbd66",
"PackageDeletionBehavior": "Unlist",
"AllowPackageOverwrites": false,
"Database": {
"Type": "Sqlite",
"ConnectionString": "Data Source=./baget.db"
},
"Storage": {
"Type": "FileSystem",
"Path": "/disk/packages"
},
"Search": {
"Type": "Database"
},
}
```
## 安装服务
```sh
```
##