从sources.list.d获取包源



我想下载suricata包的源代码

我添加了以下回购

sudo add-apt-repository ppa:oisf/suricata-stable

如果我安装软件包,我会得到最新版本的

$ suricata -V
This is Suricata version 6.0.4 RELEASE

但当我尝试下载源时

$ apt source suricata
Reading package lists... Done
NOTICE: 'suricata' packaging is maintained in the 'Git' version control system at:
https://alioth.debian.org/anonscm/git/pkg-suricata/pkg-suricata.git
Please use:
git clone https://alioth.debian.org/anonscm/git/pkg-suricata/pkg-suricata.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 11.8 MB of source archives.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe suricata 3.2-2ubuntu3 (dsc) [2,768 B]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe suricata 3.2-2ubuntu3 (tar) [11.7 MB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/universe suricata 3.2-2ubuntu3 (diff) [20.3 kB]
Fetched 11.8 MB in 1s (10.3 MB/s)   
dpkg-source: info: extracting suricata in suricata-3.2
dpkg-source: info: unpacking suricata_3.2.orig.tar.gz
dpkg-source: info: unpacking suricata_3.2-2ubuntu3.debian.tar.xz
dpkg-source: info: applying reproducible.patch
dpkg-source: info: applying debian-default-cfg.patch
dpkg-source: info: applying optional-hyperscan.patch
$ ls
suricata-3.2  suricata_3.2-2ubuntu3.debian.tar.xz  suricata_3.2-2ubuntu3.dsc  
suricata_3.2.orig.tar.gz

我得到了旧版本。

有没有办法从新添加的回购中获取来源?

我确实已经研究过git repo,但我更感兴趣的是apt source或类似的实际命令。

此行:

Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe suricata 3.2-2ubuntu3 (dsc) [2,768 B]

会告诉您该包是从哪里下载的,它来自universe存储库。

您需要为添加的PPA启用源程序包:

echo "deb-src http://ppa.launchpad.net/oisf/suricata-stable/ubuntu bionic main" |
sudo tee -a /etc/apt/sources.list.d/oisf-suricata-stable-bionic.list
sudo apt update
apt source suricata

相关内容

  • 没有找到相关文章