Skip to content

Commit

Permalink
Version 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinlyonsrepo committed Mar 9, 2024
1 parent 7df7224 commit b661f48
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
10 changes: 4 additions & 6 deletions documentation/help/package_lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ The "pkglistFunc" is called at various places in program see (REF1) marker in re
| 10 | All packages installed as dependencies | pkgQd.txt |
| 11 | All explicitly installed native packages, quiet output for system restore | pkgQqne.txt |
| 12 | All packages that are optional dependencies and not installed explicitly | pkgOptDep.txt |
| 13 | All explicitly installed packages not in base-devel with size and description | pkgNonBase.txt |
| 14 | All explicitly installed packages that are not direct or opt dependencies not in base-devel with size & desc: pkgexpNonBase.txt | pkgexpNonBase |
| 13 | All explicitly installed pkgs not in meta pkg base nor pkg group xorg with size and description | pkgNonBase.txt |
| 14 | All explicitly installed pkgs not direct or optional dependencies not in meta pkg base nor pkg group xorg with size & desc | pkgexpNonBase.txt |
| 15 | All installed packages sorted by size | pkgSize.txt |
| 16 | All installed packages sorted by last install/update date | pkgDate.txt |
| 17 | All installed groups | pkgGroups.txt |
| 18 | All packages in repository core | pkgCore.txt |
| 19 | All packages in repository extra | pkgExtra.txt |
| 20 | All packages in repository community | pkgComm.txt |
| 21 | All packages in repository multilib | pkgMulib.txt |
| 22 | All installed packages sorted by original install date | pkginstall.txt |
| 23 | All development/unstable packages(cvs svn git hg bzr darcs) | pkgdevel.txt |
Expand All @@ -54,14 +53,13 @@ The "pkglistFunc" is called at various places in program see (REF1) marker in re
10. pacman -Qd
11. pacman -Qqne
12. comm -13 <(pacman -Qdtq | sort) <(pacman -Qdttq | sort)
13. expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <(pacman -Qqg base-devel | sort))
14. expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqent | sort) <(pacman -Qqg base-devel | sort))
13. expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <({ pacman -Qqg xorg; expac -l '\n' '%E' base; } | sort -u))
14. expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqent | sort) <({ pacman -Qqg xorg; expac -l '\n' '%E' base; } | sort -u))
15. expac -H M '%m\t%n' | sort -hr
16. expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort -hr
17. expac -g '%G' | sort -u
18. paclist core
19. paclist extra
20. paclist community
21. paclist multilib
22. sed -n "/ installed "x" /{s/].*/]/p;q}" /var/log/pacman.log NOTE: "x" = array containing pacman -Qq
23. pacman -Qq | awk '/^.+(-cvs|-svn|-git|-hg|-bzr|-darcs)$/'
Expand Down
4 changes: 4 additions & 0 deletions documentation/history/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
* 3 new config settings added , If missing from file software will use defaults , see Readme.
* Backup section removed , the package backupmenu still provides all its functionality
* Security and network section's merged into System maintenance

### Version 6.3-4 05-2024
* Github issue 9 related to base-devel package changes
* Github issue 10 related to Community repository changes
4 changes: 0 additions & 4 deletions modules/Misc_module
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ if msgFunc yesno
msgFunc norm "All explicitly installed packages: $(pacman -Qe | wc -l)"
msgFunc norm "All explicitly installed native packages that are"
msgFunc norm "not direct or optional dependencies: $(pacman -Qqent | wc -l)"
msgFunc norm "All explicitely installed pkgs not in base-devel grps: \
$(comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base-devel | sort) | wc -l ) "
msgFunc norm "All foreign installed packages: $(pacman -Qm | wc -l)"
msgFunc norm "All foreign explicitly installed packages: $(pacman -Qme | wc -l)"
msgFunc norm "All packages installed as dependencies: $(pacman -Qd | wc -l) "
Expand All @@ -331,15 +329,13 @@ then
msgFunc norm "Packages Count by repositories:-"
msgFunc norm "Core: $(paclist core | wc -l)"
msgFunc norm "Extra: $(paclist extra | wc -l)"
msgFunc norm "Community: $(paclist community | wc -l)"
msgFunc norm "Multilib: $(paclist multilib | wc -l)"
msgFunc norm "Foreign: $(pacman -Qm | wc -l)"
msgFunc norm "Total: $(pacman -Q | wc -l)"
msgFunc norm " "
msgFunc norm "Packages Installed size by repositories:-"
msgFunc norm "Core: $(pacman -Qi $(paclist core | awk '{print $1}' ) | awk '/Installed Size/ {if ($5=="MiB") {sum+=$4} else if ($5=="KiB") {sum+=($4/1024)}} END {print sum " MiB"}')"
msgFunc norm "Extra: $(pacman -Qi $(paclist extra | awk '{print $1}' ) | awk '/Installed Size/ {if ($5=="MiB") {sum+=$4} else if ($5=="KiB") {sum+=($4/1024)}} END {print sum " MiB"}')"
msgFunc norm "Community: $(pacman -Qi $(paclist community | awk '{print $1}' ) | awk '/Installed Size/ {if ($5=="MiB") {sum+=$4} else if ($5=="KiB") {sum+=($4/1024)}} END {print sum " MiB"}')"
if [ "$(paclist multilib | wc -l)" != "0" ]
then
msgFunc norm "Multilib: $(pacman -Qi $(paclist multilib | awk '{print $1}' ) | awk '/Installed Size/ {if ($5=="MiB") {sum+=$4} else if ($5=="KiB") {sum+=($4/1024)}} END {print sum " MiB"}')"
Expand Down
16 changes: 7 additions & 9 deletions modules/Pacman_module
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ function pkglistFunc
comm -13 <(pacman -Qdtq | sort) <(pacman -Qdttq | sort) > pkgOptdep.txt #12

#expac
msgFunc norm "13: All explicitly installed packages not in base-devel with size"
msgFunc norm "and description: pkgNonBase.txt"
expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <(pacman -Qqg base-devel | sort))\
| sort -hr > pkgNonBase.txt #13
msgFunc norm "13: All explicitly installed packages not in the meta package "
msgFunc norm "base nor package group xorg with size and description: pkgNonBase.txt"
expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <({ pacman -Qqg xorg; expac -l '\n' '%E' base; } \
| sort -u)) | sort -n > pkgNonBase.txt #13

msgFunc norm "14: All explicitly installed packages that are not direct or optional dependencies"
msgFunc norm "and not in base-devel with size and description: pkgexpNonBase.txt"
expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqent | sort) <(pacman -Qqg base-devel | sort))\
| sort -hr > pkgexpNonBase.txt #14
msgFunc norm "not in the meta package base nor package group xorg with size and description: pkgexpNonBase.txt"
expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqent | sort) <({ pacman -Qqg xorg; expac -l '\n' '%E' base; } \
| sort -u)) | sort -n > pkgexpNonBase.txt #14

msgFunc norm "15: All installed packages sorted by size: pkgSize.txt"
expac -H M '%m\t%n' | sort -hr > pkgSize.txt #15
Expand All @@ -319,9 +319,7 @@ function pkglistFunc
msgFunc norm "Packages by repositories:-"
msgFunc norm "18: Core: $(paclist core > pkgCore.txt ) : pkgCore.txt" #18
msgFunc norm "19: Extra: $(paclist extra > pkgExtra.txt ) : pkgExtra.txt" #19
msgFunc norm "20: Community: $(paclist community > pkgComm.txt ) : pkgComm.txt" #20
msgFunc norm "21: Multilib: $(paclist multilib > pkgMulib.txt ): pkgMulib.txt" #21

msgFunc norm "22: All installed packages sorted by very first install date: pkginstall.txt" #22
local pacQArr
pacQArr=$(pacman -Qq)
Expand Down

0 comments on commit b661f48

Please sign in to comment.