Article 5D3JZ The removepkg remove packages dir by a '*' input

The removepkg remove packages dir by a '*' input

by
zhl
from LinuxQuestions.org on (#5D3JZ)
It was the time while kde4 has been removed from current, I created a script to remove those packages list on changelogs webpage.
Warnning, may cause damage!
Code:cd /tmp
wget -E -H -k -K -p -e robots=off --wait 0.25 "http://www.slackware.com/changelog/current.php?cpu=x86_64"
egrep Removed\.\<br /tmp/www.slackware.com/changelog/current.php\?cpu\=x86_64.html | cut -d ":" -f 1 |xargs sudo removepkgYesterday, I run that script agin, but it removed the dir /var/lib/pkgtools/packages on file system.

A subcommand may cause this serious problem,
Code:sudo removepkg extra/pure-alsa-system/*I think this may side effects of the pkgtool upgraded last month,
Code:Tue Dec 29 20:34:54 UTC 2020
a/pkgtools-15.0-noarch-34.txz: Rebuilt.
installpkg: run doinst.sh in a subshell for NOLOCK packages.
removepkg: run uninstall scripts in a subshell.
This avoids a bug when handling multiple packages where these scripts might
be in the wrong directory when a new file/package is to be processed.
Thanks to Mario Preksavec.I do not want to fix the system before 15 released,
and anyway, I should make removepkg accept *.txz only in that script.:study:latest?d=yIl2AUoC8zA latest?i=MvXVZczuZDw:dbgNcdM7tEE:F7zBnMy latest?i=MvXVZczuZDw:dbgNcdM7tEE:V_sGLiP latest?d=qj6IDK7rITs latest?i=MvXVZczuZDw:dbgNcdM7tEE:gIN9vFwMvXVZczuZDw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments