Postez ici vos trucs & astuces.
Répondre

Différence entre le dernier iso et ma config ?

#1Messageil y a 4 ans

:bjr:

Suite à un sujet à l'inter, un membre à fait un script bash pour comparer nos paquets avec le dernier iso

Uniquement pour gnome, kde et xfce !

Petite version de l'original qui ne montre que ce nous n'avons pas (les lib*** sont ignorés)
fichier compare-to-iso.sh

#!/usr/bin/bash
#fichier : compare-to-iso.sh    
#Version: 3

getIsoPkgs() {
    declare desk iso url
    desk="${1:-kde}"
    iso="$(curl -sL https://manjaro.osdn.io/${desk}/latest | sed -e 's/\"/\n/g' | grep -Eo 'http.*iso$' -m1 )"
    url="${iso/.iso/-pkgs.txt}"
    curl -sL "$url" | awk '{print $1}' | sort
}

# Tell the script what you are looking for
gnome="http://rwthaachen.dl.osdn.jp/storage/g/m/ma/manjaro/gnome/18.1.2/manjaro-gnome-18.1.2-191028-linux53-pkgs.txt"
kde="https://osdn.net/projects/manjaro/storage/kde/18.1.2/manjaro-kde-18.1.2-191028-linux53-pkgs.txt"
xfce="https://osdn.net/projects/manjaro/storage/xfce/18.1.2/manjaro-xfce-18.1.2-191028-linux53-pkgs.txt"

# download latest pkg info
PS3="ma manjaro est installée depuis l'iso: "
select var in gnome kde xfce
do
     echo "iso: ${var}"
     url=${!var}
     echo "${var}: $url"
     wget -q "$url"
     break
done
file="echo *pkgs.txt"

# generate list of installed packages
pacman -Q > pacman.txt

# compare results
cat ${file} | cut -d' ' -f1 > comp1.txt
cat pacman.txt | cut -d' ' -f1 > comp2.txt
echo -e "-- paquets dans iso et pas en local --\n"
declare -a pkgs=()
while IFS=' ' read -r pkg; do
    pkgs+=("$pkg")
    desc="$(pacman -Si "$pkg" 2>/dev/null | awk -F':' '/^Desc/ {print $2}')"
    printf "\033[32m%s\033[0m:\t%s\n" "$pkg" "$desc"
done < <(diff -u comp2.txt comp1.txt | grep -E "^\+" | sed '1d'  | cut -c2- | grep -v '^lib')

echo -e "\n${#pkgs[@]} paquets"

#echo "--- paquets en + pas dans iso"
#diff -u comp1.txt comp2.txt | grep -E "^\+" | sed '1d'  | cut -c2-  | tee userpkglist.txt # Packages installed by User

# clean up
rm -rf *pkgs.txt comp1.txt comp2.txt pacman.txt

Différence entre le dernier iso et ma config ?

#2Messageil y a 4 ans

Résultat : je suis économe :gsourire: pas chez moi (kde) ces 41 paquets :

alsa-plugins
amd-ucode
apparmor
bash-completion
bauh
enchant
fwupd
game-devices-udev
hdparm
hspell
imagewriter
kernel-alive
kget
konversation
kpmcore3
linux53
manjaro-alsa
manjaro-documentation-en
manjaro-pulse
manjaro-settings-manager-knotifier
noto-fonts-cjk
oxygen
oxygen-icons
pamac-snap-plugin
pamac-tray-appindicator
partitionmanager3
pulseaudio-alsa
qgpgme
snapd
squashfs-tools
steam-manjaro
thunderbird
timeshift
tlp
wallpapers-juhraya
webkit2gtk
wpebackend-fdo
xdg-desktop-portal-kde
xorg-xrandr
yakuake
zenity

Différence entre le dernier iso et ma config ?

#3Messageil y a 4 ans

:bjr: 71 sur ma Xfce: J'ai un peu bidouillé le script pour en avoir en plus le nombre.

# compare results
cat ${file} | cut -d' ' -f1 > comp1.txt
cat pacman.txt | cut -d' ' -f1 > comp2.txt
echo "-- paquets dans iso et pas en local --"
diff -u comp2.txt comp1.txt | grep -E "^\+" | sed '1d'  | cut -c2- | grep -v '^lib' |tee nombre.txt
echo "Total " 
cat nombre.txt |wc -l
#echo "--- paquets en + pas dans iso"
#diff -u comp1.txt comp2.txt | grep -E "^\+" | sed '1d'  | cut -c2-  | tee userpkglist.txt # Packages installed by User

# clean up
 rm -rf *pkgs.txt comp1.txt comp2.txt pacman.txt nombre.txt

-- paquets dans iso et pas en local --
apparmor
bash-completion
bauh
dbus-x11
farstream
flatpak
game-devices-udev
grub-theme-manjaro
gtk-engine-murrine
gtk-engines
gtk3
gtkhash
gtkhash-thunar
hexchat
intel-ucode
kernel-alive
kvantum-qt5
kvantum-theme-matcha
light-locker
lightdm
lightdm-gtk-greeter
lightdm-gtk-greeter-settings
lsof
manjaro-application-utility
manjaro-documentation-en
manjaro-xfce-gtk3-settings
matcha-gtk-theme
noto-fonts-cjk
orage
ostree
pamac-snap-plugin
papirus-icon-theme
papirus-maia-icon-theme
pidgin
pipewire
protobuf-c
python-pycups
python-pycurl
qt5-styleplugins
qt5ct
rest
snapd
snapd-glib
steam-manjaro
system-config-printer
systemd-fsck-silent
thunar-media-tags-plugin
timeshift
wallpapers-2018
wallpapers-juhraya
xcursor-breeze
xdg-desktop-portal
xdg-desktop-portal-gtk
xfburn
xfce4-battery-plugin
xfce4-cpufreq-plugin
xfce4-dict
xfce4-diskperf-plugin
xfce4-fsguard-plugin
xfce4-genmon-plugin
xfce4-mailwatch-plugin
xfce4-mount-plugin
xfce4-mpc-plugin
xfce4-netload-plugin
xfce4-notes-plugin
xfce4-sensors-plugin
xfce4-smartbookmark-plugin
xfce4-time-out-plugin
xfce4-verve-plugin
xfce4-wavelan-plugin
zenity
Total
71

Différence entre le dernier iso et ma config ?

#4Messageil y a 4 ans

avec le 1er script

acpi
amd-ucode
android-tools
android-udev
apparmor
audacious
audacious-plugins
b43-fwcutter
bauh
cifs-utils
dbus-x11
engrampa
file-roller
flatpak
gcolor2
gksu-polkit
gnome-icon-theme
gnome-icon-theme-symbolic
grub-theme-manjaro
gtkhash
gtkhash-thunar
gvfs-nfs
gvfs-smb
illyria-wallpaper
iniparser
ipw2100-fw
ipw2200-fw
java-environment-common
java-runtime-common
jdk8-openjdk
jre8-openjdk
jre8-openjdk-headless
kernel-alive
kvantum-qt5
kvantum-theme-matcha
kwindowsystem
ldb
lmdb
manjaro-application-utility
manjaro-firmware
manjaro-hello
manjaro-wallpapers-18.0
manjaro-xfce-gtk3-settings
matcha-gtk-theme
mkinitcpio-openswap
mtpfs
noto-fonts
noto-fonts-cjk
os-prober
ostree
pamac-snap-plugin
papirus-icon-theme
papirus-maia-icon-theme
patchutils
perl-file-basedir
perl-file-desktopentry
perl-file-mimeinfo
perl-ipc-system-simple
perl-parse-yapp
pipewire
python-cachecontrol
python-colorama
python-distlib
python-distro
python-docopt
python-html5lib
python-importlib-metadata
python-keyutils
python-lockfile
python-more-itertools
python-msgpack
python-pep517
python-pillow
python-pip
python-progress
python-pytoml
python-reportlab
python-retrying
python-webencodings
python-yaml
python-zipp
samba
smbclient
snapd
snapd-glib
talloc
tevent
timeshift
tlp
udiskie
unace
upower
vi
wallpapers-2018
wallpapers-juhraya
xdg-desktop-portal
xdg-desktop-portal-gtk
xfce4-power-manager
zsh
avec le 2eme script

acpi
amd-ucode
android-tools
android-udev
apparmor
audacious
audacious-plugins
b43-fwcutter
bauh
cifs-utils
dbus-x11
engrampa
file-roller
flatpak
gcolor2
gksu-polkit
gnome-icon-theme
gnome-icon-theme-symbolic
grub-theme-manjaro
gtkhash
gtkhash-thunar
gvfs-nfs
gvfs-smb
illyria-wallpaper
iniparser
ipw2100-fw
ipw2200-fw
java-environment-common
java-runtime-common
jdk8-openjdk
jre8-openjdk
jre8-openjdk-headless
kernel-alive
kvantum-qt5
kvantum-theme-matcha
kwindowsystem
ldb
lmdb
manjaro-application-utility
manjaro-firmware
manjaro-hello
manjaro-wallpapers-18.0
manjaro-xfce-gtk3-settings
matcha-gtk-theme
mkinitcpio-openswap
mtpfs
noto-fonts
noto-fonts-cjk
os-prober
ostree
pamac-snap-plugin
papirus-icon-theme
papirus-maia-icon-theme
patchutils
perl-file-basedir
perl-file-desktopentry
perl-file-mimeinfo
perl-ipc-system-simple
perl-parse-yapp
pipewire
python-cachecontrol
python-colorama
python-distlib
python-distro
python-docopt
python-html5lib
python-importlib-metadata
python-keyutils
python-lockfile
python-more-itertools
python-msgpack
python-pep517
python-pillow
python-pip
python-progress
python-pytoml
python-reportlab
python-retrying
python-webencodings
python-yaml
python-zipp
samba
smbclient
snapd
snapd-glib
talloc
tevent
timeshift
tlp
udiskie
unace
upower
vi
wallpapers-2018
wallpapers-juhraya
xdg-desktop-portal
xdg-desktop-portal-gtk
xfce4-power-manager
zsh
Total 
99
mais j'ai en plus avec les lib32

acpica
aspell-en
aspell-fr
boost-libs
borg
breath-wallpaper
cblas
clementine
clucene
cmake
crypto++
dbus
diffuse
djvulibre
downgrade
edid-decode
efitools
elfutils
ethtool
expac
firefox-i18n-en-us
firefox-i18n-fr
fluidsynth
fsarchiver
ftgl
fuseiso
fwupd
fzf
gconf
gimp-help-en
gimp-help-fr
gksu
glew1.10
glm
gnu-free-fonts
gpart
grsync
gtk-xfce-engine
guayadeque
gutenprint
hddtemp
hunspell-en_AU
hunspell-en_CA
hunspell-en_US
hunspell-fr
hw-probe
hyphen-en
hyphen-fr
iftop
iotop
iperf3
isousb
jsoncpp
lib32-curl
lib32-dbus-glib
lib32-freeglut
lib32-giflib
lib32-glew1.10
lib32-imlib2
lib32-libappindicator-gtk2
lib32-libcaca
lib32-libcurl-compat
lib32-libcurl-gnutls
lib32-libgcrypt15
lib32-libgudev
lib32-libid3tag
lib32-libidn11
lib32-libidn2
lib32-libjpeg6-turbo
lib32-libmikmod
lib32-libmodplug
lib32-libnm-glib
lib32-libnsl
lib32-libpng12
lib32-libpsl
lib32-librtmp0
lib32-libssh2
lib32-libtheora
lib32-libtiff4
lib32-libtirpc
lib32-libudev0-shim
lib32-libunistring
lib32-libusb
lib32-libva1
lib32-libvpx1.3
lib32-libwebp
lib32-libwrap
lib32-mpg123
lib32-nvidia-440xx-utils
lib32-openal
lib32-openssl-1.0
lib32-sdl
lib32-sdl2
lib32-sdl2_image
lib32-sdl2_mixer
lib32-sdl2_ttf
lib32-sdl_image
lib32-sdl_mixer
lib32-sdl_ttf
lib32-smpeg
lib32-speex
lib32-speexdsp
libabw
libcdr
libcmis
libcurl-compat
libcurl-gnutls
libe-book
libepubgen
libetonyek
libexttextcat
libfbclient
libfreehand
libgcrypt15
libgksu
libgnome-keyring
libgoom2
libgpod
libgtop
libidn11
libixion
libjpeg6-turbo
libkate
liblangtag
liblastfm-qt5
libmagick6
libmikmod
libmspub
libmwaw
libmygpo-qt5
libnm-glib
libnumbertext
libodfgen
liborcus
libpagemaker
libpng12
libqxp
libreoffice-still
libreoffice-still-fr
librevenge
librtmp0
libsmbios
libspectre
libstaroffice
libtiff4
libtiger
libtommath
libudev0-shim
libuv
libva1
libvisio
libvpx1.3
libwpd
libwpg
libwps
libwrap
libxmlb
libzmf
linux414
linux414-headers
linux414-nvidia-440xx
linux414-virtualbox-host-modules
linux419
linux419-headers
linux419-nvidia-440xx
linux419-virtualbox-host-modules
linux53-headers
linux53-nvidia-440xx
linux53-virtualbox-host-modules
lpsolve
lshw
lzop
maia-wallpaper
manjaro-artwork
manjaro-backgrounds
manjaro-printer
manjaro-xfce-settings
meld
mkinitcpio-nfs-utils
mtools
nbd
ndiswrapper-utils
net-tools
netctl
nethogs
networkmanager-dispatcher-ntpd
nilfs-utils
nmap
numactl
nvidia-440xx-utils
ocl-icd
open-fuse-iso
opencv
openssl-1.0
opusfile
pa-applet
pacgraph
pacui
perf
portaudio
progsreiserfs
projectm
ps_mem
pugixml
python2-mutagen
qt5-translations
qt5-xmlpatterns
rasqal
redland
refind-efi
rhash
ristretto
sdl2_image
sdl2_mixer
sdl2_ttf
sdl_image
sdl_mixer
sdl_ttf
sdparm
sg3_utils
sip
smartmontools
smpeg
steam-native-runtime
syslinux
sysstat
teamspeak3
testdisk
thunderbird-i18n-en-us
thunderbird-i18n-fr
tpm2-tss
tree
ttf-dejavu
ttf-ubuntu-font-family
udftools
unarj
vcdimager
vertex-maia-icon-theme
vertex-maia-themes
virtualbox
virtualbox-guest-iso
vtk
wireless_tools
words
wxgtk-common
wxgtk3
wxsqlite3
xfce4-artwork
xfce4-datetime-plugin
xfce4-eyes-plugin
xfwm4-themes
xmlsec
xorg-fonts-misc
yay
youtube-dl
l'option retenu pour la liste des packages semble incomplet ,
il y en a de 2 sortes installés ou explicitement installés , sans parler de ceux ajoutés par yay ou trizen
cela ne tient pas compte du "bordel" venant des lib32 car ils augmentent en nombre dès qu'il y a une dépendance depuis les iso 32bits , et j'y suis obligé pour les drivers nvidia d'avoir le multilib

Différence entre le dernier iso et ma config ?

#5Messageil y a 4 ans

:salut:

-- paquets dans iso et pas en local --
apparmor
appstream-glib
archlinux-appstream-data
bash-completion
bauh
dbus-x11
engrampa
file-roller
flatpak
galculator-gtk2
game-devices-udev
gcab
gcolor2
gksu-polkit
grub-theme-manjaro
gtk-engines
gtkhash
gtkhash-thunar
illyria-wallpaper
intel-ucode
kernel-alive
kvantum-qt5
kvantum-theme-matcha
kwindowsystem
lsof
manjaro-application-utility
manjaro-hello
manjaro-settings-manager-notifier
manjaro-wallpapers-18.0
manjaro-xfce-gtk3-settings
matcha-gtk-theme
noto-fonts
noto-fonts-cjk
ostree
pamac-cli
pamac-common
pamac-gtk
pamac-snap-plugin
papirus-icon-theme
papirus-maia-icon-theme
snapd
snapd-glib
squashfs-tools
steam-manjaro
systemd-fsck-silent
timeshift
wallpapers-2018
wallpapers-juhraya
xdg-desktop-portal
xdg-desktop-portal-gtk
xiccd
xorg-xrandr
zip
Pas de flatpak et c'est très bien comme ça :sourire: Voili voilou

Différence entre le dernier iso et ma config ?

#6Messageil y a 4 ans

update (v2) du script dans premier post : ajout couleur , descriptif du paquet et total

@Stephane ici mon but n'est pas de voir la liste complète des paquets (fait à l'inter) mais de savoir ce que je peux "louper" par rapport au dernier iso (ou ce que j'ai supprimé bêtement :lol: )

ps: test sous ma arch kde : Je passe à 168 paquets (manjaro-*, mhwd-*, ...)

Différence entre le dernier iso et ma config ?

#7Messageil y a 4 ans

16 paquets.
Je suis donc très très économe, je m'étonne moi-même. :gsourire:
Répondre