Multilib Scripting challenge
by business_kid from LinuxQuestions.org on (#539C4)
I'm looking for scripting ideas for this challenge:
Quote:
I don't even know where to start. Awk is probably the one, but I left it out of my self-education; sed I'm primitive with; Grep I'm better, but I don't think it does enough; and a bash script doesn't get me round the tricky lines.
Alien Bob does an x86 multilib version of gcc & glibc, for replacing the originals. I selected the glibc-2.30-multilib-alien package on my pc as a good test, and copied it to my homedir. It had entries in lib/, lib64/, usr/lib/, and usr/lib64/ and in fact it seems to dump in almost every relevant directory. When I can process that, I'll take on the arm.
Given that I'm not throwing any towel in, I'd appreciate any suggestions to give me direction.


Quote:
Go through the /var/lib/pkgtools/packages files; for each file, remove the entries beginning 'usr/lib/' and 'lib/' and save the ones from each package to a separate file, preferably with a similar name. |
Alien Bob does an x86 multilib version of gcc & glibc, for replacing the originals. I selected the glibc-2.30-multilib-alien package on my pc as a good test, and copied it to my homedir. It had entries in lib/, lib64/, usr/lib/, and usr/lib64/ and in fact it seems to dump in almost every relevant directory. When I can process that, I'll take on the arm.
Given that I'm not throwing any towel in, I'd appreciate any suggestions to give me direction.