All Projects → davidfoerster → Aptsources Cleanup

davidfoerster / Aptsources Cleanup

Licence: mit
Detects and interactively deactivates duplicate Apt source entries and deletes sources list files without valid enabled source entries (as requested in https://askubuntu.com/a/762815/175814).

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aptsources Cleanup

Apt Smart
apt-smart: Smart, automated, robust apt-get mirror selection for Debian, Ubuntu and Linux Mint
Stars: ✭ 153 (-59.84%)
Mutual labels:  ubuntu, debian, apt
Aptutil
Go utilities for Debian APT repositories
Stars: ✭ 95 (-75.07%)
Mutual labels:  ubuntu, debian, apt
Switch Apt Mirror.ansible.role
switch apt mirror for Debian & Ubuntu with Ansible role.
Stars: ✭ 5 (-98.69%)
Mutual labels:  ubuntu, debian, apt
Aptly
aptly - Debian repository management tool
Stars: ✭ 2,065 (+441.99%)
Mutual labels:  ubuntu, debian, apt
Vim Lastplace
Intelligently reopen files at your last edit position in Vim.
Stars: ✭ 271 (-28.87%)
Mutual labels:  ubuntu, debian
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (-9.97%)
Mutual labels:  ubuntu, debian
Btfs
A bittorrent filesystem based on FUSE.
Stars: ✭ 2,984 (+683.2%)
Mutual labels:  ubuntu, debian
Php 7 Debian
Install PHP 7 on Debian/Ubuntu
Stars: ✭ 361 (-5.25%)
Mutual labels:  ubuntu, debian
notion-linux
Native Notion packages for Linux
Stars: ✭ 887 (+132.81%)
Mutual labels:  debian, ubuntu
Debian Packaging For The Modern Developer
Debian packaging tutorials for the modern developer
Stars: ✭ 284 (-25.46%)
Mutual labels:  ubuntu, debian
Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (-20.47%)
Mutual labels:  ubuntu, debian
Polybar Themes
A huge collection of polybar themes with different styles, colors and variants.
Stars: ✭ 3,687 (+867.72%)
Mutual labels:  ubuntu, debian
Howtopopbuntu
Tweaks for Debian & Ubuntu based Distro.
Stars: ✭ 267 (-29.92%)
Mutual labels:  ubuntu, debian
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (-10.5%)
Mutual labels:  ubuntu, debian
zfs-installer
Shell script program that prepares ZFS on a system, and installs Linux
Stars: ✭ 137 (-64.04%)
Mutual labels:  debian, ubuntu
Quickbox Lite
Lightweigt QuickBox
Stars: ✭ 298 (-21.78%)
Mutual labels:  ubuntu, debian
Qtodotxt
Cross Platform todo.txt GUI
Stars: ✭ 358 (-6.04%)
Mutual labels:  ubuntu, debian
Slickstack
SlickStack is a free LEMP stack automation script written in Bash designed to enhance and simplify WordPress provisioning, performance, and security.
Stars: ✭ 311 (-18.37%)
Mutual labels:  ubuntu, debian
Wordpress Nginx
WordPress specific Nginx configuration templates and best practices!
Stars: ✭ 332 (-12.86%)
Mutual labels:  ubuntu, debian
Negibox
All in one downloader 全能下载器
Stars: ✭ 335 (-12.07%)
Mutual labels:  ubuntu, debian

Purpose

Detects and interactively deactivates duplicate Apt source entries and deletes sources list files without valid enabled source entries in /etc/sources.list and /etc/sources.list.d/*.list.

Prerequisites

TL;DR: Have a supported Ubuntu or other Debian-based system and install a couple of Python packages:

sudo apt install python3-apt python3-regex

For details see below.

Mandatory

  • Python 3.4+

  • The aptsources module. In Debian-based distribution you can find it in the python3-apt package.

Optional

  • The regex module for improved (non-European) language support. Package name: python3-regex.

Download / Installation

Option 1: Python ZIP application

  1. Download the ZIP application bundle:

  2. Mark it as executable through your file manager or the command-line:

    chmod a+x aptsources-cleanup.pyz
    

Option 2: From source

Alternatively, you can download the source code and run it in Python (albeit without translations).

Usage

  • From a ZIP application bundle:

    sudo ./aptsources-cleanup.pyz
    
  • From source code:

    sudo ./aptsources-cleanup
    

For a (slightly more) detailed description and individual command-line options see the output of

./aptsources-cleanup.pyz --help

or

./aptsources-cleanup --help

depending on the deployment type.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].