[ Content contribution] [每日源分享]水谈·优雅的 deb 存储库分析工具
Tofloor
poster avatar
魔法师
deepin
2024-07-15 19:38
Author

引子:曾经部署的在线版软件源分析工具已经随服务器一起消失了

早前,部署了一个基于 streamlit 的软件源分析器,由于服务商跑路的原因,服务器已经消失了

有一段时间,我编写了大量基于 streamlit 的复杂应用,但常用的也就是那么几个,由于服务器的丢失,我失去了我自认为最强的正则数据转化工具,软件源分析工具,deepin wiki 的爬虫工具,.... 等等。(仓库仍在,不部署无法使用)

最近想来,还是需要一个能随时使用的源分析工具,然后就写了这个:

image.png

image.png

录屏_debian-apt-analyzer_20240716234331.gif

录屏_debian-apt-analyzer_20240715192647.gif

  • 仓库

    https://gitee.com/zinface/qt.debian-apt-analyzer

  • 构建,并直接安装它(可选)

    # 以下是克隆并打包(deb)
    git clone https://gitee.com/zinface/qt.debian-apt-analyzer
    cd qt.debian-apt-analyzer
    make package
    
    # 以下是直接运行它
    make run
    
    # 以下是安装它
    sudo dpkg -i build/*.deb
    

项目内有一个源规则文件,只是有些复杂,你可以配置你想添加的 apt 软件源


我的源分享:

# A/B 规则,默认源前缀为北外源,/ 转为 dists
# debian/bullseye
# https://mirrors.bfsu.edu.cn/A/dists/B


# A/B:C 规则,A 被 C 代替,/ 转为 dists
# lingmo/polaris:https://packages-lingmo.simplelinux.cn.eu.org/polaris
# https://packages-lingmo.simplelinux.cn.eu.org/polaris/dists/polaris
北京龙芯/trixie:bjlx


# A:C 规则,A 被 C 代替
# deepin-community-qt-6.6:https://ci.deepin.com/repo/deepin/deepin-community/qt-6.6
# https://ci.deepin.com/repo/deepin/deepin-community/qt-6.6


# 例外的:
# A/B:C 规则,B 可以包含多个 / ,但也符合 A/B 规则,所以,A 被 C 代替,/ 转 dists,B部分保留不变
# uos/eagle/1070:https://cdn-professional-security.chinauos.com
# https://cdn-professional-security.chinauos.com/dists/eagle/1070


# 总之 A/B:C 与  A:C 结构就已经代表了大部分,而 A:C 规则也能替代 A/B:C 规则


# 现在 为了格式美观,可以在 C 的前面插入空格以保持源规则优雅,就像:
# uos/eagle/1050             :https://cdn-professional-security.chinauos.com
# uos/eagle/1060             :https://cdn-professional-security.chinauos.com
# uos/eagle/1070             :https://cdn-professional-security.chinauos.com




# ppa:xtradeb/apps
ppa(xtradeb-apps)/devel                :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)[20.04]/focal         :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)/groovy               :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)/hirsute              :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)/impish               :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)[22.04]/jammy         :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)/kinetic              :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)/lunar                :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)[23.04]/mantic        :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)[24.04]/noble         :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu
ppa(xtradeb-apps)[20.10]/oracular      :https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu



# ppa:xtradeb/play
ppa(xtradeb-play)/devel               :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)[20.04]/focal        :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)/groovy              :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)/hirsute             :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)/impish              :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)[22.04]/jammy        :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)/kinetic             :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)/lunar               :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)[23.04]/mantic       :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)[24.04]/noble        :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu
ppa(xtradeb-play)[20.10]/oracular     :https://ppa.launchpadcontent.net/xtradeb/play/ubuntu


# 
Steamg平台(需翻墙)/stable        :https://repo.steampowered.com/steam
谷歌Chrome浏览器/stable          :https://dl.google.com/linux/chrome/deb


# 
deepin(v23正式版)/beige         :https://community-packages.deepin.com/beige
deepin(v23)quantum/beige       :http://quantum-mirror.hu/mirrors/pub/deepin/beige


# docker
docker-debian/bookworm   :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
docker-debian/bullseye   :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
docker-debian/buster     :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
docker-debian/jessie     :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
docker-debian/stretch    :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
docker-debian/wheezy     :https://mirrors.bfsu.edu.cn/docker-ce/linux/debian
Reply Favorite View the author
All Replies
2 / 2
To page
魔法师
deepin
2024-09-04 13:08
#21

今日源分享:

Debian9.0/stretch:http://archive.debian.org/debian
Debian8.0/jessie:http://archive.debian.org/debian
Debian7.0/wheezy:http://archive.debian.org/debian
Debian6.0/squeeze:http://archive.debian.org/debian
Debian5.0/lenny:http://archive.debian.org/debian
Debian4.0/etch:http://archive.debian.org/debian
Debian3.1/sarge:http://archive.debian.org/debian
Debian3.0/woody:http://archive.debian.org/debian
Debian2.2/potato:http://archive.debian.org/debian
Debian2.1-slink(main-binary-i386)http://archive.debian.org/debian/dists/slink/main/binary-i386
Debian2.1-slink(contrib-binary-i386)http://archive.debian.org/debian/dists/slink/contrib/binary-i386
Debian2.0-hamm(main-binary-i386):http://archive.debian.org/debian/dists/hamm/main/binary-i386
Debian2.0-hamm(contrib-binary-i386):http://archive.debian.org/debian/dists/hamm/contrib/binary-i386/
Debian1.3-bo(main-binary-i386):http://archive.debian.org/debian/dists/bo/main/binary-i386
Debian1.3-bo(contrib-binary):http://archive.debian.org/debian/dists/bo/contrib/binary
Debian1.2-rex(main):http://archive.debian.org/debian/dists/rex/main
Debian1.2-rex(contrib):http://archive.debian.org/debian/dists/rex/contrib
Debian1.1-buzz(无效):http://archive.debian.org/debian/dists/buzz
Reply View the author
2 / 2
To page