You are viewing jackyf

Previous Entry | Next Entry

cupt-standalone

feterny-bird
Some people worried that cupt has a lot of dependencies, so it's uninstallable on very limited systems. I probably have good news for them:


$ dpkg -l | grep perl
ii liblocale-gettext-perl 1.05-4 Using libc functions for internationalizatio
ii perl-base 5.10.1-6 minimal Perl system

$ ./cupt-compiled-i386 -s full-upgrade
Building the package cache... [done]
Initializing package resolver and worker... [done]
Scheduling requested actions... [done]
Resolving possible unmet dependencies...
The following 15 packages will be INSTALLED:

dash gnupg-curl insserv install-info libc-bin libc6-i686 libdb4.7 [...]

The following 118 packages will be UPGRADED:

apt apt-utils base-files base-passwd bash bsdmainutils coreutils cpio [...]

Need to get 48.5MiB/56.0MiB of archives. After unpacking 46.7MiB will be used.
Do you want to continue? [y/N/q] q

$ wc -c ./cupt-compiled-i386
3584686 ./cupt-compiled-i386


This is a part of the log from my i386 chroot.

The only extra dependency for the binary is 'libcurl3-gnutls' for downloading from http/https/ftp. It does not need even perl-base to work, but I can't remove perl-base from the system as it's essential.

PAR rocks.

Tags:

Comments

( 8 comments — Leave a comment )
codehelp [launchpad.net]
Nov. 5th, 2009 10:58 am (UTC)
Removing perl
Emdebian can remove perl and perl-base - how big is the cupy i386 executable using PAR? It's simply a case of removing the Essential: yes tags from the Packages file(s). Essential doesn't mean the same thing in embedded systems.
http://wiki.debian.org/EmdebianPolicy
jackyf
Nov. 5th, 2009 11:13 am (UTC)
Re: Removing perl
>Emdebian can remove perl and perl-base - how big is the cupy i386 executable using PAR?

Around 3.5 MiB, as showed in original post by 'wc -c'.

>It's simply a case of removing the Essential: yes tags from the Packages file(s).

Of course, but perl-base declared Essential for a reason - some dpkg scripts (at least in usual system, maybe dpkg in Emdebian does not) depend on it, and I don't want to break my chroot.
turbonomad
Nov. 5th, 2009 11:05 am (UTC)
Бля!
Сделай что-то с этой длинной строчкой!
Иначе из френдов выкину нахуй.
jackyf
Nov. 5th, 2009 11:20 am (UTC)
Как страшно жить... сократил.
turbonomad
Nov. 5th, 2009 11:21 am (UTC)
Спасибо!
juliank.wordpress.com
Nov. 5th, 2009 01:30 pm (UTC)
Security
I guess that an executable which statically includes the perl interpreter and its dependencies is not acceptable from a security point of view, at least not for Debian.
jackyf
Nov. 5th, 2009 02:33 pm (UTC)
Re: Security
I doubt that systems which care about each installed MiB can have even minimal stock Debian installation.
(Anonymous)
Jan. 31st, 2011 08:24 am (UTC)
Bardzo pouczajace
dobry poczatek
( 8 comments — Leave a comment )