Updated 001-core.xzm
Posted: 08 Aug 2020, 02:54
I managed to learn enough scripting to automate the process of removing old packages and installing new ones, (manually) downloaded all packages in 001-core.xzm for which I found updates, removed all of the old packages, and installed all the new ones. The resulting module is much larger than 001-core.xzm (I haven't stripped it of package documentation). I tried booting with my updated core module, but I can't log in; xorg complains several times about a missing libnettle.so.6. How can this be fixed? Might 003-xfce.xzm need to be updated too?
Updated core module:
Removal Script:
Update Script:
Updated core module:
Code: Select all
https://drive.google.com/file/d/1vlVOkNCrrh43Ttkh3A0qwMm7CWtBWzTK/view?usp=sharing
Code: Select all
# Extract substring of all characters preceding the first "-" followed by a numeral:
#
get_package () {
package="$(cut -d'-' -f 1 <<< $1)"
second_field="$(cut -d'-' -f 2 <<< $1)"
if [[ "${second_field:0:1}" != [0-9] ]]; then
package="$package-$second_field"
fi
}
exec 3</mnt/sdb5/temp/oldpackages.txt
while IFS= read -r opline <&3
do
get_package $opline
old_package_name=$package
exec 4</mnt/sdb5/temp/new-package-list.txt
while IFS= read -r npline <&4
do
get_package $npline
new_package_name=$package
if [ $new_package_name == $old_package_name ]; then
ROOT=/mnt/sdb5/temp/unpacked removepkg $opline
break
fi
done
done
Code: Select all
input="/mnt/sdb5/temp/new-package-list.txt"
while IFS= read -r line
do
ROOT=/mnt/sdb5/temp/unpacked installpkg "$line"
done < "$input"
printf "%s\n\n\n"
read -p "Hit Enter to exit"