-
Senior Member
registered user
At least three alternatives, I think
In the first place, I think it may be reasonable to ask why anyone should be confined to 4GB storage in 2016. Most smartphones, even the very cheap ones, have at least the double of that. But, on the other hand, this can be done.
1. As has been suggested, start from Debian live, and modify that by adding packages, using persistence much the same way as in Knoppix. Simplest and safest, but it might not get you where you wanted.
2. Knoppify Debian live. There is a recent thread about this here.
3. Purge and remaster. It is possible, not even very hard, to slim DVD Knoppix down quite a bit. I routinely purged a couple of GBs worth from stock Knoppix before starting to add packages, so I guess the basic image would be around 3.3 GB. I'll detail this a bit here.
Do test runs without persistent store mounted (knoppix noimage). You might not believe it, but the Debian package system seems to be very buggy when it comes to package removal. I believed this was fixed, but it isn't. So when you remove a package, it has the tendency to remove everything that package is dependent on, even if other packages depend on it, making a potentially huge cascade. Maybe this is due to circular dependencies being introduced (which should not have been allowed in the first place), I don't know. But the effect is that if you try to remove something as peripherical (to the average user, not to me) as TeX, you end up having things like LibreOffice, Okular and Pidgin removed. (Aptitude is even so rude as to complain about it, but say "as you requested" when it performs some of these faulty removals. I guess there are quite a few infallible popes around.)
Removing games seems to be safe (freeing about 750MB uncompressed)
Code:
sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^games | cut -d' ' -f2`
sudo aptitude -y purge `deborphan`
But this one upset Knoppix completely
Code:
sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^tex | cut -d' ' -f2`
After the two purge command, about 500 packages were removed (down from 3872, ie. average compressed size on the DVD about 1M)
It should be possible to fix the situation afterwards also in this case, though. Starting with something less essential (to Debian it seems) than TeX might be safer.
Also removing whole sections, like it is done here, is very dangerous compared to removing on a package basis
For example, removing inkscape should free at least about 100MB
Code:
sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep inkscape | cut -d' ' -f2`
sudo aptitude -y purge `deborphan`
Omitting the -y switch with aptitude gives you more of a negotiating mode of operation. So the catastrophes may be stopped.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170
$35.88
Dell OEM Inspiron 15 3510 3511 3515 15.6" LCD LED WXGAHD Widescreen 78KFY
$47.69
New Original OEM Genuine DELL 65W Small Tip 19.5V AC Charger Power Cord Adapter
$25.87
NEW Dell OEM Latitude 5430 5530 7430 7330 7530 41Wh 3-cell Laptop Battery- M69D0
$50.99
OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip
$10.99
Dell Original OEM 45W 19.5V AC Adapter Charger 070VTC 0KXTTW 00285K 0YTFJC 4.5mm
$10.94
NEW OEM 45W Adapter For Dell XPS 13 9333 9343 9350 L321X L322X Charger LA45NM131
$12.88
OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270
$11.88
OEM DELL 130W 19.5V 6.7A Laptop Charger / AC Adapter - Large Tip - DA130PE1-00
$15.00
Genuine 45W Power Adapter Charger for Dell DA45NM140 0KXTTW 4.5*3.0mm OEM
$16.99