arm linux 安装apt-get
时间: 2023-11-17 18:56:55 浏览: 699
在 ARM Linux 上安装 apt-get 需要先安装 dpkg 工具,然后再通过 dpkg 安装 apt-get。具体步骤如下:
1. 下载 dpkg 的源码包,解压缩并进入目录:
```
wget http://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.7.tar.xz
tar -xvf dpkg_1.19.7.tar.xz
cd dpkg-1.19.7
```
2. 安装编译 dpkg 所需的依赖库:
```
sudo apt-get install build-essential autoconf automake libtool liblzma-dev libbz2-dev libzstd-dev libselinux1-dev libacl1-dev libattr1-dev libcap-dev libpcre3-dev libpcre++-dev gettext
```
3. 配置、编译、安装 dpkg:
```
./configure
make
sudo make install
```
4. 下载 apt 的源码包,解压缩并进入目录:
```
wget http://ftp.debian.org/debian/pool/main/a/apt/apt_2.2.4.tar.xz
tar -xvf apt_2.2.4.tar.xz
cd apt-2.2.4
```
5. 安装编译 apt 所需的依赖库:
```
sudo apt-get install libcurl4-openssl-dev libexpat1-dev liblzma-dev zlib1g-dev libbz2-dev libzstd-dev libssl-dev libreadline-dev libsqlite3-dev libxml2-dev libgpgme-dev libapt-pkg-dev liblz4-dev liblz4-tool
```
6. 配置、编译、安装 apt:
```
./configure
make
sudo make install
```
7. 安装完成后,可以使用 apt-get 命令了。
阅读全文