Cyconet Blog avatar

Cyconet Blog


Remember, a Jedi can feel the Force flowing through him. Then we’ll go with that data file! As you wish. Robot 1-X, save my friends! And Zoidberg!


  • Home
  • Projects
  • Publications
  • EMail Conditions
  • About
  • Imprint
  • Github
  • Xing
  • RSS

22 Oct 2004 in Planet Debian ~ read.

Remove all packages of one source

  #!/usr/bin/perl
  #
  # Author: Florian Ragwitz
  # E-Mail: florian@gnoppix.org
  #
  
  die("Packagelist needed") if(!@ARGV);
  
  while(<>) {
  	if(/^Package: (.*)$/) {
  		print $1."n";
  		system("apt-get remove $1");
  	}
  }

As argument is a file with package informations needed (can be found in /var/lib/apt/lists)

← Other resources Clone systems over ssh →
© 2021. All rights reserved. Built with Uno Zen under Ghost. Original design by Dale Anthony.