0

When I install something on terminal, it often shows me a few things for status. For one, it shows download rate (which is fine). However, when I install something, it can display

Unpacking libgranite2:amd64 (0.3.0~r732+pkg64~ubuntu0.3.1) ...
Selecting previously unselected package slingshot-launcher.
Preparing to unpack .../slingshot-launcher_0.7.6.1+r421+pkg32~ubuntu0.3.1_amd64.deb ...
Unpacking slingshot-launcher (0.7.6.1+r421+pkg32~ubuntu0.3.1) ...
Selecting previously unselected package contractor.
Preparing to unpack .../contractor_0.3.1~r136+pkg22~ubuntu0.3.1_amd64.deb ...
Unpacking contractor (0.3.1~r136+pkg22~ubuntu0.3.1) ...
Selecting previously unselected package apport-hooks-elementary.
Preparing to unpack .../apport-hooks-elementary_0.1-0~35~saucy1_all.deb ...
Unpacking apport-hooks-elementary (0.1-0~35~saucy1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libgranite-common (0.3.0~r732+pkg64~ubuntu0.3.1) ...
Setting up libgranite2:amd64 (0.3.0~r732+pkg64~ubuntu0.3.1) ...
Setting up slingshot-launcher (0.7.6.1+r421+pkg32~ubuntu0.3.1) ...
Setting up contractor (0.3.1~r136+pkg22~ubuntu0.3.1) ...
Setting up apport-hooks-elementary (0.1-0~35~saucy1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ..

I would rather that not show up. I only want to see download rate, not all that other stuff. How do I do this?

EDIT: I would also like the jargon to be stored somwehre else if something goes wrong, or for the jargon to just be expanable on terminal.

  • 2
    If something goes wrong, you're going to need this output. – saiarcot895 Jun 4 '14 at 14:54
  • @saiarcot895 edited question – rajlego Jun 4 '14 at 14:56
  • If you redirect the output you will miss the prompt to continue and apt-get will hang there waiting for you to respond Y/n. – Elder Geek Jun 4 '14 at 16:16
1

Better yet, try Ubuntu Software Center!

  • 1
    Well, not all packages are installable through software center. – rajlego Jun 4 '14 at 21:32
  • Correct, but there are several that are. – user3669669 Jun 5 '14 at 17:49
  • Well I already install what I can with software center, I'm just looking for a solution for the packages that must be installed from terminal – rajlego Jun 5 '14 at 19:51
0

See the Apt Man Page, and add -d, short for --download-only. For this to work, you'd have to run apt twice(the first pass will do --download-only, and the second pass will install/upgrade etc) To run in one command use the &&(And) operator . For Elder Geek's/Tim's solution to work add --assume-yes

  • How does this hide the output? – Seth Jun 4 '14 at 20:53
  • The OP only wants to see the download rate. This is as close as we can get. – eyoung100 Jun 4 '14 at 20:54
  • You should probably state that in your answer then. – Seth Jun 4 '14 at 21:00
  • Why, question readers who actually read the question will see Download only, I did, but I'll edit it – eyoung100 Jun 4 '14 at 21:06
0

sudo apt-get install &> installoutput.txt redirects it to a file. The download rate is difficult, you can redirect all of it, or none.

As ElderGeek pointed out, this doesn't work.

As EcarterYoung pointed out, this one does work?:

sudo apt-get install <package> --assume-yes &> installoutput.txt redirects it to a file.

  • Tim will the problem that elder geek pointed out apply for your solution? – rajlego Jun 4 '14 at 18:42
  • No, I didn't think about that. – Tim Jun 4 '14 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.