> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/apt-sortpkgs.md).

# apt-sortpkgs

Debian Linux下对软件包索引文件进行排序的工具

## 补充说明

**apt-sortpkgs命令** 是Debian Linux下对软件包索引文件进行排序的简单工具。

### 语法

```
apt-sortpkgs(选项)(参数)
```

### 选项

```
-s：使用源索引字段排序；
-h：显示帮助信息。
```

### 参数

文件：指定要排序的包含debian包信息的索引文件。
