ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alex Murygin <murygin@tut.by>
To: community@altlinux.ru
Subject: Re: [Comm] Re: Чистка системы...
Date: Thu, 24 Apr 2003 14:39:30 +0300
Message-ID: <20030424143930.69fe5809.murygin@tut.by> (raw)
In-Reply-To: <20030424104304.3F4862B51E@mail.ru.echo.fr>

On Thu, 24 Apr 2003 14:50:09 +0400
"Anton V. Boyarshinov" <boyarsh@ru.echo.fr> wrote:

> On Thu, 24 Apr 2003 12:57:39 +0300 Alex Murygin
>  wrote:
> > Немного не в тему, но где-то читал что для Debian есть маленький
> > пакет который просто напросто проверяет обращение к файлам пакетов и
> > если давно не было обращений удаляет их. Как он точно работает и как
> > он называется я не помню, но идея мне понравилась.
> 
> [root@boyarsh root]# rpm -qa| while read name; do rpm -ql $name |xargs
> find 2>/dev/null|xargs -r stat -c'%X' 2>/dev/null|gawk -v name=$name
> 'BEGIN{time=0}{if($1>time){time=$1}}END{print name, time}'; done |
> gawk -v date=`date +'%s' -d2003-01-01` '{if($2<date)print $1}'

А я бы использовал

rpm -q --queryformat "[%{FILENAMES:shescape} ]" $name
вместо
rpm -ql $name

 
> Этот скрипт выводит спиок пакетов, в котроых нет файлов к которым был
> доступ позже заданной даты. Дату в скрипте предлагаю найти
> самостоятельно. Однако, относиться к этому списку надо осторожно,
> особенно на редко перезагружаемых машинах.

:)

> Антон
> -- 
> mailto:boyarsh@mail.ru
> mailto:boyarsh@ru.echo.fr
>  14:44:01  up 49 days, 21:11, 12 users,  load average: 0.60, 1.50,
>  1.11


-- 
-----------------------
- Alex Murygin, AITOC -
-----------------------


  reply	other threads:[~2003-04-24 11:39 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-23  8:04 [Comm] " Alexey A. Shestopalov
2003-04-23  8:29 ` [Comm] " Anton V. Boyarshinov
2003-04-23  8:34   ` Anton V. Boyarshinov
2003-04-23  9:04     ` Mike Lykov
2003-04-23  9:14       ` Anton V. Boyarshinov
2003-04-23  9:18         ` Anton V. Boyarshinov
2003-04-23  9:21     ` Anton V. Boyarshinov
2003-04-23 11:54 ` [Comm] " Alex Murygin
2003-04-23 12:12   ` Sergey Indlin
2003-04-23 13:42     ` [Comm] about_setup_master_2.2 Aндрій Луцків
2003-04-23 13:53       ` Maxim Tyurin
2003-04-24  9:51     ` [Comm] Чистка системы Alex Murygin
2003-04-24 11:14       ` Sergey Indlin
2003-04-23 12:16   ` Andriy Dobrovol's'kii
2003-04-23 12:52     ` Sergey Indlin
2003-04-23 12:59     ` [Comm] " Sergey Vlasov
2003-04-23 15:53       ` Andriy Dobrovol's'kii
2003-04-23 16:22         ` Sergey Vlasov
2003-04-24  7:43           ` Andriy Dobrovol's'kii
2003-04-24  8:01             ` [Comm] " Alexey A. Shestopalov
2003-04-24  8:10               ` Anton V. Boyarshinov
2003-04-24  9:57               ` [Comm] " Alex Murygin
2003-04-24 10:50                 ` Anton V. Boyarshinov
2003-04-24 11:39                   ` Alex Murygin [this message]
2003-04-24 11:56                     ` Anton V. Boyarshinov
2003-04-24  8:07             ` Andriy Dobrovol's'kii
2003-04-24 10:36               ` Mike Lykov
2003-04-23 13:08   ` [Comm] " Alex Murygin

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=20030424143930.69fe5809.murygin@tut.by \
    --to=murygin@tut.by \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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