Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Purging packages from the 7.0.5DVD, installing previous package selections

  1. #1
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    Purging packages from the 7.0.5DVD, installing previous package selections

    Most of this has been posted earlier, but here it is, checked for 7.0.5.

    To make room for other programs in a remastering, purging is needed. Everything isn't equally safe to purge, but games, some documentation and some language support is usually safe. We can also always reinstall something should things go wrong.

    To find out what takes the most space, we can issue a command like this:

    Code:
    dpkg-query -W --showformat='${Installed-Size} ${Section} ${Package}\n' | sort -n > knx705_DVDpack_size.txt
    Looking at the end of the file created, we can check if the packages taking up the most space are really things we need to have installed. Just remember that nowadays, a program often comes as a set of packages, and every package of that set being small doesn't guarantee that the totality is.

    This is my main list of purges. It can be put in a shell script and executed at once, but I prefer to run the lines one by one. Also, it may be a good idea to omit the "-y" command, to be able to stop a purging in process - aptitude tells what it has figured out to do, and gives you the choice to not accept it.

    Code:
    # Purging 7.0.5 DVD
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^games | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep bacula | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^editors | grep lyx | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^editors | grep abiword | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^gnome | grep gnucash | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^gnome | grep nautilus | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^mail | grep kmail | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^mail | grep icedove | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^utils | grep amanda | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^web | grep chromium | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^kde | grep l10n | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^graphics | grep inkscape | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^graphics | grep scribus-ng | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^doc | grep gimp-help-de | cut -d' ' -f2`
    In addition, to make room for more Java servers etc, I do some extra purging, like:

    Code:
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep openshot | cut -d' ' -f2`
    sudo aptitude  purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep oxygencursors | cut -d' ' -f2`
    sudo aptitude  purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep gnome-user-guide | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep qt4-demos | cut -d' ' -f2`
    When it is all done, it's time for some install. This is a way to recover, as far as possible, an earlier selection of packages - in this case the extra R and math packages I installed with 6.4.4, the selection list was then written to disk with the command
    Code:
    dpkg-query -W --showformat='${Section} ${Package}\n' | sort -n > knx644_64_sqpack_sect1.txt
    in the packlists subdirectory.

    Now, I can recover parts of that selection by using this type of command

    Code:
    sudo aptitude install `cat packlists/knx644_64_sqpack_sect1.txt | grep ^gnu-r | cut -d' ' -f2` 
    sudo aptitude install `cat packlists/knx644_64_sqpack_sect1.txt | grep ^math | cut -d' ' -f2`
    It turned out, that the math category from that install would now occupy ca 350MB extra - I therefore decided to wait and go for a smaller selection.

  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    17
    In synaptic, I came across debfoster as being installed and its description looked useful so i ran it from the terminal. The first item to come up is bluez-utils that is keeping 33 packages installed. Why can't I see that in my installed packages? Is there a debfoster command that tells me what package is keeping bluez-utils installed? Is bluez-utils useful? thanks for any guidance

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    debfoster

    sorry guys, was looking in the wrong section for bluez-utils in Synaptic. Found it and removed it (dont need bluetooth support. Why was it included in the first place? Does knoppix know that my comp supports bluetooth?

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by dunnthebum View Post
    sorry guys, was looking in the wrong section for bluez-utils in Synaptic. Found it and removed it (dont need bluetooth support. Why was it included in the first place? Does knoppix know that my comp supports bluetooth?
    Both the CD and, in particular, the DVD version of Knoppix contains loads of programs you will not use - but someone needs it, like bluetooth support. If you install the debtree package, you can see dependencies. Try (with bluez-utils installed) the pipe

    Code:
    debtree bluez-utils | dot -Tps | okular - &
    You may be astonished

  5. #5
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    problem installing debtree

    on installing debtree:

  6. #6
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    problem installing debtree

    sorry, cut & paste didnt work. Here it is using 'insert inline' hope it can be readScreenshot from &#50.png

  7. #7
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    I had no problems installing debtree with Synaptic on a thorougly purged 7.0.5 DVD version.
    So it's no general error, at least.

  8. #8
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    After having done a couple of 7.0.5 remasterings after different levels of purging, I think I have to warn, generally, against purging. Too many packages are removed, and worse still, reinstalling the dysfunctional programs doesn't always fix the problems. I have still not been able to get konqueror up and running, even with no extensive purging of KDE packages. This is a new problem, the same methods have worked fine on earlier Knoppix releases. It is also quite frustrating to have a system that seems to work well, but then suddenly something is broken, and the standard ways to fix it don't work. So, if KK would leave about a GB worth of space on the DVD (about the size of installed games), it would be very helpful to us who need to remaster to accomodate large extra installs. Purging used to be a safe and nice thing to do, I can't say it is anymore.

  9. #9
    Junior Member
    Join Date
    Jun 2012
    Posts
    19

    Has anyone created a minimal 7.0.5? Willing to share?

    Quote Originally Posted by Capricorny View Post
    After having done a couple of 7.0.5 remasterings after different levels of purging, I think I have to warn, generally, against purging. Too many packages are removed, and worse still, reinstalling the dysfunctional programs doesn't always fix the problems. I have still not been able to get konqueror up and running, even with no extensive purging of KDE packages. This is a new problem, the same methods have worked fine on earlier Knoppix releases. It is also quite frustrating to have a system that seems to work well, but then suddenly something is broken, and the standard ways to fix it don't work. So, if KK would leave about a GB worth of space on the DVD (about the size of installed games), it would be very helpful to us who need to remaster to accomodate large extra installs. Purging used to be a safe and nice thing to do, I can't say it is anymore.
    I am one of those who have tried to pare Knoppix down to a minimal size, in order to then construct a customized, modular Knoppix using the ramdisk KNOPPIX 2-9 method. I might suggest, that a minimal Knoppix need only be created once and that anyone who has such a beast made from 7.0.5 and would share it would probably have the undying gratitude of those of us who are struggling with this.

    Along this line, is it possible to include the 64 bit kernel with the cd version in order to boot into 64-bit or are there other components necessary? Is it as simple as copying over the kernel file from the DVD? Creating a minimal version might be easier, starting from the smaller footprint cd, but no 64-bit is a non-starter for me.

    I appreciate any and all insights into this.

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by dwstarke View Post
    I am one of those who have tried to pare Knoppix down to a minimal size, in order to then construct a customized, modular Knoppix using the ramdisk KNOPPIX 2-9 method. I might suggest, that a minimal Knoppix need only be created once and that anyone who has such a beast made from 7.0.5 and would share it would probably have the undying gratitude of those of us who are struggling with this.

    Along this line, is it possible to include the 64 bit kernel with the cd version in order to boot into 64-bit or are there other components necessary? Is it as simple as copying over the kernel file from the DVD? Creating a minimal version might be easier, starting from the smaller footprint cd, but no 64-bit is a non-starter for me.

    I appreciate any and all insights into this.
    The only really safe way I know about, is debootstrap. Morphing that into a knxbootstrap would be very useful, but personally, I'm not going to try it now. I have found out that it is more fruitful to concentrate on squashfs remasterings and avoid that somewhat artificial 4GB limit. On my DVD-based system, package linux-image-3.6.11-64 is installed - have you tried to install that in a CD-based system? I have had some success running 64 bits in a chrooted debootstrap version.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED picture

Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED

$79.99



EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED picture

EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED

$450.00



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



Juniper DCS-7280SR2-48YC6-R  48x25GbE SFP 6 x 100GbE QSFP Switch Rear Airflow picture

Juniper DCS-7280SR2-48YC6-R 48x25GbE SFP 6 x 100GbE QSFP Switch Rear Airflow

$7895.00



Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch picture

Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch

$115.00



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper EX4300-48T EX4300 48 Port Gigabit 4-Port QSFP+ Switch picture

Juniper EX4300-48T EX4300 48 Port Gigabit 4-Port QSFP+ Switch

$84.00



Juniper EX2300-48P  PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested picture

Juniper EX2300-48P PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested

$289.00



Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested picture

Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested

$599.99