Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 8598  / 2 Years ago, sun, may 8, 2022, 3:59:28

For example:



The following command will install all packages that match it's pattern:



  sudo apt-get install k3b-*


If I want to use that instruction but don't want to install one specific package with broken dependencies, how do I do that?



I have tried this but not works.



sudo apt-get install "$(apt-cache --no-generate pkgnames k3b | grep -v extrathemes | tr '
' ' ')" :



 sam@/home/sam/code/ros/ai/cram/roslisp_repl$ sudo apt-get install      "$(apt-cache --no-generate pkgnames k3b | grep -v extrathemes | tr '
' ' ')"
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package k3b-dbg k3b-data k3b

sam@/home/sam/code/ros/ai/cram/roslisp_repl$


Thank you~


More From » apt

 Answers
2

You can do



list=$(apt-cache --names-only search ^k3b-* | awk '{ print $1 }' | 
grep -v bad-pkg)
sudo apt-get install $list

[#43457] Tuesday, May 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;