Score:0

Automatize using bash downloading deb files and dependencies and later extracting them to a unique folder and compress it to use in a live filesystem

gh flag

I am developing a Live filesystem and need to be able to download deb files with its dependencies which I manually do using:

apt download $(apt-cache depends --recurse --no-recommends --no-suggests \
--no-conflicts --no-breaks --no-replaces --no-enhances \
--no-pre-depends ${PACKAGES} | grep "^\w")

After that, I need to extract all data.tar.gz from required deb packages combined to one unique folder (the mv command is not very useful in merging folders) which I manually do using both /usr/bin/ar x or dpkg-deb later combined with tar to extract all files from data.tar.gz from $DEB

Is there a bash way to automatize the whole process disregard the number of downloaded $DEB files? Thank you.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.