Author Topic: [dev] packsize : list of installed packages sorted by size  (Read 2494 times)

0 Members and 1 Guest are viewing this topic.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Hi all,

It was first written for my needs, but I share in case of...



PKGBUILD






Blue means independent, can be removed without problem. Clicking on a pink open a little window with the list of the packages who depends of it.
« Last Edit: 06. August 2015, 14:15:21 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #1 on: 06. August 2015, 14:06:33 »
how cool!  8)
thank you!
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #2 on: 07. August 2015, 02:05:54 »
I like it, Esclapion! Very convenient, indeed!
At the moment there seems to be a problem with the dependency-query.
Somehow what I get here does not make sense:
Clicking on virtualbox gives me: inxi, vim-runtime ???
firefox --> colord
gutenprint --> manjaro-alsa ;)

If there's any helpful data I can collect for your information, let me know! :)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #3 on: 07. August 2015, 02:17:30 »
If you click on "scan for dependencies", you must wait til the end, or the result can be bad.
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #4 on: 07. August 2015, 02:41:28 »
Oh, I see! I suspected that. I was too impatient ::) I have soo many packages installed...   O:-)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #5 on: 07. August 2015, 10:46:57 »
I could lock that, with a nice box "Please wait...".  :D
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #6 on: 07. August 2015, 11:13:08 »
Or "Attendez s.v.p." YES!  ;D
There would not be a way to preserve the collected data of dependencies for next time, so it will not take so long every time? I guess that would be quite challenging as it will have to take into account which packages have been removed and added since ::)  8)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #7 on: 07. August 2015, 11:19:03 »
Without clicking on "Scan of dependencies", if you click on a package, you have its dependency immediately.

Else a lot of enhancements are possible, it it interests. For example, clicking on dependency to have its dependency, and so on.
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline Ste74

  • Support Team
  • ****
  • Posts: 1256
  • sudo pacman -Rs windows && sudo pacman -S manjaro
  • Branch: unstable
  • Desktop: Budgie / Gnome / Pantheon (testing)
  • GPU Card: ATI/Intel mobility radeon hd 5400
  • GPU driver: free
  • Kernel: linux4.x -x86_64 series
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #8 on: 07. August 2015, 11:36:59 »
Nice, simple and efficient... ;)
Good to create a manjaro utility set  :)
Pantheon Community Edition & Budgie Desktop Edition
www.forum.manjaro-it.org
Canale IRC italiano
#manjaro-it

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #9 on: 14. August 2015, 12:25:30 »
Seriously cool stuff!

Offline Ste74

  • Support Team
  • ****
  • Posts: 1256
  • sudo pacman -Rs windows && sudo pacman -S manjaro
  • Branch: unstable
  • Desktop: Budgie / Gnome / Pantheon (testing)
  • GPU Card: ATI/Intel mobility radeon hd 5400
  • GPU driver: free
  • Kernel: linux4.x -x86_64 series
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #10 on: 04. September 2015, 19:38:18 »
Hi Esclapion , i try to compile your packsize but exit with error ..
Code: [Select]
[stefano@ste74-pc Packsize]$ makepkg -s
==> Creazione del pacchetto: packsize 1.1-0 (ven  4 set 2015, 19.33.42, CEST)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> Aggiornamento del repository packsize git in corso...
Fetching origin
remote: Counting objects: 4, done.
remote: Total 4 (delta 3), reused 3 (delta 3), pack-reused 1
Unpacking objects: 100% (4/4), done.
Da git://github.com/Esclapion/packsize
   4691576..3d034b7  master     -> master
==> Validazione dei sorgenti con md5sums in corso...
    packsize ... Ignorato
==> Estrazione dei sorgenti in corso...
  -> Creazione di una copia di lavoro del repository packsize git in corso...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
Da /build/src/packsize
   4691576..3d034b7  master     -> origin/master
/usr/bin/makepkg: riga 1576: cd: build/makepkg/packsize/src: File o directory non esistente
==> ERRORE: Impossibile spostarsi nella directory build/makepkg/packsize/src
    L'operazione sta per essere interrotta...
[stefano@ste74-pc Packsize]$

not know why ? in the folder of packsize is present all file .. possible cause is the other partition called /build ?( i create for build iso and pkg with manajro-tools but makepkg command always works just now .. ) before i try to recompiling manjaro-tools-git and obtain the same error .. (impossible move to folder /build ecc )  :(
« Last Edit: 04. September 2015, 19:41:07 by Ste74 »
Pantheon Community Edition & Budgie Desktop Edition
www.forum.manjaro-it.org
Canale IRC italiano
#manjaro-it

Offline Ste74

  • Support Team
  • ****
  • Posts: 1256
  • sudo pacman -Rs windows && sudo pacman -S manjaro
  • Branch: unstable
  • Desktop: Budgie / Gnome / Pantheon (testing)
  • GPU Card: ATI/Intel mobility radeon hd 5400
  • GPU driver: free
  • Kernel: linux4.x -x86_64 series
  • Skill: Advanced
Re: [dev] packsize : list of installed packages sorted by size
« Reply #11 on: 04. September 2015, 22:40:36 »
remove my makepkg.conf  ;D
Pantheon Community Edition & Budgie Desktop Edition
www.forum.manjaro-it.org
Canale IRC italiano
#manjaro-it

Offline ringo

  • Held Mitglied
  • *****
  • Posts: 9684
  • www.manjaro-nl.org
    • Manjaro Belgium + forum
  • Branch: unsourced
  • Desktop: xfce
  • GPU Card: Nvidia Geforce 8600 GT (acer 23inch)
  • GPU driver: Free*
  • Kernel: linux kernel
  • Skill: Novice
Re: [dev] packsize : list of installed packages sorted by size
« Reply #12 on: 05. September 2015, 01:02:44 »
Hi all,

It was first written for my needs, but I share in case of...



PKGBUILD






Blue means independent, can be removed without problem. Clicking on a pink open a little window with the list of the packages who depends of it.
Matter of speak... make a 3th colom in the middle.. or a button for a popup-window.. that shows the tree of a package ... ? 

just example script ? https://bbs.archlinux.org/viewtopic.php?id=10283



Dutch go the dutch site :)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #13 on: 28. February 2016, 17:00:28 »
here some tips about dependencies:

if you want to see which packages depend on <PACKAGE NAME>, use this command:
Code: [Select]
pactree -s <PACKAGE NAME>

if you want to see, which packages require <PACKAGE NAME> as a dependency, use this:
Code: [Select]
pactree -r <PACKAGE NAME>
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Strit

  • Maintainer
  • ***
  • Posts: 746
  • Manjaro Torrent Maintainer
    • Strits.dk
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GTX 760 OC
  • GPU driver: Non-free nvidia 361
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: [dev] packsize : list of installed packages sorted by size
« Reply #14 on: 02. March 2016, 08:56:34 »
Really nice, although the main feature of this project is incoorporated into Pamac.
In Pamac, you can click on "Status" -> "installed", and then in the right panel, you can sort by size. :)

The dependency overview though, is awesome. :)
Desktop PC: Manjaro XFCE 15.12 (stable, kernel 4.4)
Private Laptop: Manjaro Strit 16.03 (unstable, kernel 4.6)
Work Laptop: Manjaro Strit 16.03 (stable, kernel 4.4)
Netbook: Arch Linux XFCE/LXqt (i686, kernel 4.0)