ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Игорь <mailvisor@mail.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Умно почистить кэш apt-a
Date: Fri, 07 May 2004 12:41:25 +0400
Message-ID: <409B4BB5.2080309@mail.ru> (raw)

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

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

Только после этого можно использовать этот, а то вычистит все что не 
соответствует правилу формирования имени 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
___________________________________________________
Кому страшно - может предварительно отсадить куда нибудь пакеты


             reply	other threads:[~2004-05-07  8:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07  8:41 Игорь [this message]
2004-05-07  9:34 ` Ildar Mulyukov
2004-05-07 10:38 ` Sergey Shilov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=409B4BB5.2080309@mail.ru \
    --to=mailvisor@mail.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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