ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Умно почистить кэш apt-a
@ 2004-05-07  8:41 Игорь
  2004-05-07  9:34 ` Ildar Mulyukov
  2004-05-07 10:38 ` Sergey Shilov
  0 siblings, 2 replies; 3+ messages in thread
From: Игорь @ 2004-05-07  8:41 UTC (permalink / raw)
  To: sisyphus

В апреле обсуждалась тема чистки
предлагаю скрипт, но извиняюсь за стиль - не спец

!!!! Файлы предварительно переименовываются к именам пакетов
(в обсуждении предлагался скрипт по переименованию)

Только после этого можно использовать этот, а то вычистит все что не 
соответствует правилу формирования имени RPM файла.

Опробовано на Compact 2.3. + Sisyphus (на 20040505)

___________________________________________________
#!/bin/sh

apt-cache dumpavail > allpkgs.lst

for i in *.rpm
do
       p="`grep "$i" allpkgs.lst`"
       test -z "$p" && rm "$i"
done
___________________________________________________
Кому страшно - может предварительно отсадить куда нибудь пакеты


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-07 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-07  8:41 [sisyphus] Умно почистить кэш apt-a Игорь
2004-05-07  9:34 ` Ildar Mulyukov
2004-05-07 10:38 ` Sergey Shilov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git