Score:0

How can i install a list of packages with apt and apt-get

pk flag

I have a list of packages:

g++-11 lld llvm-12-dev clang-12 clang-format-12 bison libboost1.71-dev libboost1.71-context-dev libboost1.71-filesystem-dev libboost1.71-system-dev libjemalloc-dev libssl-dev

I don't want to type sudo apt-get install ... on each single one of them, what's the best way to accomplish this ?

Input:

sudo apt install g++-11 lld llvm-12-dev clang-12 clang-format-12 bison libboost1.71-dev libboost1.71-context-dev libboost1.71-filesystem-dev libboost1.71-system-dev libjemalloc-dev libssl-dev

Output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libboost1.71-context-dev
E: Couldn't find any package by glob 'libboost1.71-context-dev'
E: Unable to locate package libboost1.71-filesystem-dev
E: Couldn't find any package by glob 'libboost1.71-filesystem-dev'
E: Unable to locate package libboost1.71-system-dev
E: Couldn't find any package by glob 'libboost1.71-system-dev'

OS: Ubuntu 20.04.2 LTS

LC117 avatar
pk flag
I tried that and i think the problem is that it stops if it cant find one of them. Thanks!
Random Person avatar
us flag
Which package is it unable to find?
LC117 avatar
pk flag
'libboost1.71-filesystem-dev' and 'libboost1.71-context-dev' and 'libboost1.71-system-dev'
Random Person avatar
us flag
Which version of Ubuntu are you using?
LC117 avatar
pk flag
Ubuntu 20.04.2 LTS (i added it as well)
Random Person avatar
us flag
You have typed the wrong package names I guess. Try this: `sudo apt install libboost-context1.71-dev libboost-filesystem1.71-dev libboost-system1.71-dev` . This link will be helpful: https://packages.ubuntu.com/focal/libboost1.71-dev
LC117 avatar
pk flag
That was it thanks!
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.