LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2018, 11:41 AM   #1
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 472

Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Slacksize


A simple script to parse PACKAGES.TXT and display the series size:
Code:
#!/bin/sh

PKGS="PACKAGES.TXT"
[ -n "$1" ] && PKGS="$1"
[ -r $PKGS ] || exit 1

echo -e "SERIE\\t   COMPR\\t UNCOMPR"
echo "================================"

for serie in a ap d e f k kde kdei l n t tcl x xap xfce y ; do
    echo -en "$serie:\\t"
    cat $PKGS | sed -n "/\.\/slackware[0-9]*\/$serie$/{n;p}" | awk '{sum += $4}; END {printf "%5.0f MB",sum/1024}'
    echo -en "\\t"
    cat $PKGS | sed -n "/\.\/slackware[0-9]*\/$serie$/{n;n;p}" | awk '{sum += $4}; END {printf "%5.0f MB\n",sum/1024}'
done

echo "--------------------------------"
echo -en "Total:\\t"
cat $PKGS | awk '/\(compressed\)/ {sum += $4}; END {printf "%5.0f MB",sum/1024}'
echo -en "\\t"
cat $PKGS | awk '/\(uncompressed\)/ {sum += $4}; END {printf "%5.0f MB\n",sum/1024}'
Current-64:
Code:
SERIE	   COMPR	 UNCOMPR
================================
a:	  166 MB	  748 MB
ap:	  119 MB	  568 MB
d:	  425 MB	 2168 MB
e:	   40 MB	  120 MB
f:	    7 MB	   32 MB
k:	  100 MB	  799 MB
kde:	  652 MB	 1459 MB
kdei:	  385 MB	  931 MB
l:	  253 MB	 1524 MB
n:	   91 MB	  430 MB
t:	   81 MB	  699 MB
tcl:	    5 MB	   16 MB
x:	  119 MB	  427 MB
xap:	  202 MB	  772 MB
xfce:	   11 MB	   49 MB
y:	    2 MB	    6 MB
--------------------------------
Total:	 2657 MB	10746 MB
14.2-64:
Code:
SERIE	   COMPR	 UNCOMPR
================================
a:	  127 MB	  524 MB
ap:	  102 MB	  485 MB
d:	  240 MB	 1203 MB
e:	   39 MB	  115 MB
f:	    7 MB	   32 MB
k:	   87 MB	  625 MB
kde:	  652 MB	 1445 MB
kdei:	  385 MB	  931 MB
l:	  218 MB	 1327 MB
n:	   84 MB	  383 MB
t:	   81 MB	  262 MB
tcl:	    5 MB	   16 MB
x:	   99 MB	  345 MB
xap:	  221 MB	  792 MB
xfce:	   11 MB	   48 MB
y:	    2 MB	    6 MB
--------------------------------
Total:	 2359 MB	 8539 MB
And in case you want to know the uncompressed size of the latest KDE:
Code:
wget http://slackware.uk/people/alien-kde/current/latest/x86_64/PACKAGES.TXT -qO - \
| awk '/\(uncompressed\)/ {sum += $4}; END {printf "%.3f G\n",sum/1024/1024}'
Code:
2.928 G

Cheers
 
Old 01-21-2018, 11:50 AM   #2
DarkVision
Member
 
Registered: Jul 2007
Posts: 189

Rep: Reputation: Disabled
Don't get me wrong... but might that post only be helpful for people using Slackware *AND* extra package management tools? I like statistics but the script does not give me any output at all... Where is PACKAGES.TXT located on a clean slack install ?
 
Old 01-21-2018, 12:29 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,447

Rep: Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711
Quote:
Originally Posted by DarkVision View Post
Don't get me wrong... but might that post only be helpful for people using Slackware *AND* extra package management tools? I like statistics but the script does not give me any output at all... Where is PACKAGES.TXT located on a clean slack install ?
Nowhere, since this file is part of Slackware repository metadata. Download it from any Slackware repository mirror. Like ivandi showed for the Plasma5 repository (which has a Slackware-compatible repository layout).
 
Old 01-22-2018, 01:04 AM   #4
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 259

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by ivandi View Post
Current-64:
Code:
t:	   81 MB	  699 MB
14.2-64:
Code:
t:	   81 MB	  262 MB
If things work out, and if Pat accepts it, t: will become uncompressed under 500MB.
There are some asian/chinese/japanese fonts in texlive which explode from compressed 100kb to 50mb uncompressed, beyond other things i want to move these to the extra-texlive on SBo.

Johannes
 
Old 07-25-2018, 08:17 AM   #5
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 259

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by franzen View Post
If things work out, and if Pat accepts it, t: will become uncompressed under 500MB.
Just for completeness, texlive is now under 430mb in -current.
 
1 members found this post helpful.
Old 07-25-2018, 11:47 AM   #6
petslack
LQ Newbie
 
Registered: Apr 2009
Location: Sao Paulo, Brazil
Distribution: Slackware64-Current, CentOS, Debian, Kali
Posts: 27

Rep: Reputation: 7
Quote:
Originally Posted by Alien Bob View Post
Nowhere, since this file is part of Slackware repository metadata. Download it from any Slackware repository mirror. Like ivandi showed for the Plasma5 repository (which has a Slackware-compatible repository layout).
By the way, slackpkg keeps a copy of PACKAGES.TXT at:
Code:
/var/lib/slackpkg/PACKAGES.TXT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration