Sunday, May 5, 2024
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 16543  / 2 Years ago, fri, july 22, 2022, 11:34:01

How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ?


More From » command-line

 Answers
0

use the script command. It will copy everything that goes to screen in a file



script -c "sudo apt-get install things" script-file.script

[#24548] Sunday, July 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calronze

Total Points: 0
Total Questions: 110
Total Answers: 112

Location: Belarus
Member since Thu, Aug 11, 2022
2 Years ago
;