ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] apt-scripts
@ 2006-06-11 13:10 Alexey Tourbin
  2006-06-11 15:02 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Tourbin @ 2006-06-11 13:10 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 2017 bytes --]

On Thu, May 18, 2006 at 02:07:18AM +0400, QA Team Robot wrote:
> apt-scripts - Lua scripts for APT
> * Tue May 16 2006 Alexey Tourbin <at@altlinux> 0.1-alt1
> - initial revision, only 'apt-cache list-extras' for now

> apt-scripts - Lua scripts for APT
> * Sun May 21 2006 Alexey Tourbin <at@altlinux> 0.1.1-alt1
> - added 'apt-cache list-nodeps'
> * Tue May 16 2006 Alexey Tourbin <at@altlinux> 0.1-alt1

Команда `apt-cache list-extras' показывает пакеты, которые отсутствуют
в репозитрарии (совпадение по имени пакета, кроме специальных случаев
типа Allow-Duplicated, в которых версия также учитывается).

Вот вывод этой команды на одном из офисных серверов (поскольку пакет
apt-scripts не установлен, показываю альтернативный вариант запуска этих
скриптов):

$ cd ~/tmp/rpm
$ rpm2cpio /raid/ALT/Sisyphus/files/noarch/RPMS/apt-scripts-0.1.1-alt1.noarch.rpm |cpio -idmu --quiet
$ apt-cache script ./usr/share/apt/scripts/list-extras.lua |head
lua4
kernel22-smp-secure#2.2.25-alt1
kernel24-smp#2.4.2-ipl2mdk
libgtk+mdk
libbonobo-conf
lesstif-doc
<censored>
kernel-image-std-smp#2.4.28-alt2
glibc-core-i686
xsysinfo
$

Это означает, что перечисленных пакетов больше нет в репозитарии.
Следовательно, эти пакеты скорее всего были перемещены в
orphaned/obsolete (и поэтому, быть может, стоит их снести).


Команда `apt-cache list-nodeps' показывает пакеты, от которых не зависят
какие-либо другие пакеты, установленные в системе.  То есть эти пакеты
"никому не нужны" и их можно удалить с помощью "rpm -e".  Тем не мене,
список этот большой, примерно 1/3 от всех установленных пакетов.

Среди этого списка можно обнаружить неиспользуемые библиотеки, примерно так:

$ apt-cache script ./usr/share/apt/scripts/list-nodeps.lua |grep '^lib[^-]*$'
libgtk+mdk
libmysqlclient10
libdevmapper
libevent
libintl1
libtolua5
libdnet
libunicode
libcups
libxorgconfig
libdb1
libdb2
libgd1
libgd2
libogg
libORBit
libxml
libmm
$

Эти библиотеки, вероятно, стоит снести.

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

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

* Re: [sisyphus] apt-scripts
  2006-06-11 13:10 [sisyphus] apt-scripts Alexey Tourbin
@ 2006-06-11 15:02 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2006-06-11 15:02 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

On Sun, Jun 11, 2006 at 05:10:29PM +0400, Alexey Tourbin wrote:
[...]
> Эти библиотеки, вероятно, стоит снести.

А после удаления процедуру можно повторить.
Утверждается, что этот итеративный процесс является сходящимся. :)


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

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

end of thread, other threads:[~2006-06-11 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-11 13:10 [sisyphus] apt-scripts Alexey Tourbin
2006-06-11 15:02 ` Dmitry V. Levin

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