Commit d9aa9f4d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-clean: add deb-based support

parent ffb61139
...@@ -24,15 +24,28 @@ __remove_alt_apt_cache_file() ...@@ -24,15 +24,28 @@ __remove_alt_apt_cache_file()
sudocmd rm -vf /var/lib/apt/lists/*release* sudocmd rm -vf /var/lib/apt/lists/*release*
} }
__remove_deb_apt_cache_file()
{
sudocmd rm -vf /var/cache/apt/*.bin
sudocmd rm -vf /var/lib/apt/lists/*Packages*
sudocmd rm -vf /var/lib/apt/lists/*Release*
sudocmd rm -vf /var/lib/apt/lists/*Translation*
}
epm_clean() epm_clean()
{ {
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm)
sudocmd apt-get clean sudocmd apt-get clean
__remove_alt_apt_cache_file __remove_alt_apt_cache_file
;; ;;
apt-dpkg)
sudocmd apt-get clean
__remove_deb_apt_cache_file
;;
aptitude-dpkg) aptitude-dpkg)
sudocmd aptitude clean sudocmd aptitude clean
__remove_deb_apt_cache_file
;; ;;
yum-rpm) yum-rpm)
sudocmd yum clean all sudocmd yum clean all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment