Skip to content

frode-h/deblint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deblint

Deblint is a tool for tracking down unused Debian packages that no other packages depend on. It's designed to help you clean up your system by identifying and removing packages that are no longer needed.

Deblint uses atime to decide which packages have not been used in the set time, the default is 7 days.

Usage

deblint <days> (default=7)

Features

  • Identifies unused Debian packages that no other packages depend on.
  • Provides a whitelist feature to exclude certain packages from being suggested for removal.
  • Clean and easy-to-understand output.

Recent Updates

  • Added support for a whitelist of packages not to uninstall: You can now specify a list of packages that should not be suggested for removal, even if they are not used by any other packages.

Whitelist

To use the whitelist feature, create a newline-separated list of package names in a file called /etc/deblint/whitelist. These packages will be excluded from the list of packages suggested for removal.

For example:

init
debian-keyring
dns-root-data
firmware-linux
firmware-linux-nonfree

Building a Debian Package

To build a Debian package of this project, follow these steps:

  1. Install the necessary build dependencies:

    sudo apt-get install devscripts debhelper
  2. Navigate to your project directory:

    cd /path/to/your/project
  3. Create a source tarball in the parent directory of your project:

    tar czvf ../deblint_0.0.0.orig.tar.gz .

    Replace 0.0.0 with your actual package version.

  4. Build the Debian package:

    debuild -us -uc

    This command will create a .deb file in the parent directory of your project.

  5. To install the package, use the dpkg command:

    sudo dpkg -i ../your-package-name.deb
  • To increment the version of your package, run:

    dch -i

Testing

To change the atime of the files belonging to a package you can run something like this:

sudo apt -y install cowsay
export DATE=$(date -d "7 days ago" +%Y%m%d%H%M)
for file in `dpkg -L cowsay` ; do sudo touch -a -t $DATE $file; done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published