View previous topic :: View next topic |
Author |
Message |
Skics n00b
Joined: 23 Feb 2003 Posts: 11
|
Posted: Sun Feb 23, 2003 8:21 pm Post subject: Any way to non-destructively pause emerge -u world? |
|
|
Subject says it all. I have a slow connection and I have to use the phone, can I pause emerge -u world?
Thanks in advance,
Skics |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sun Feb 23, 2003 8:23 pm Post subject: |
|
|
CTRL-Z, later fg to resume. |
|
Back to top |
|
|
Skics n00b
Joined: 23 Feb 2003 Posts: 11
|
Posted: Sun Feb 23, 2003 8:35 pm Post subject: |
|
|
I just type "fg" to resume? Sorry for being a n00b. |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sun Feb 23, 2003 8:41 pm Post subject: |
|
|
Skics wrote: | I just type "fg" to resume? Sorry for being a n00b. |
Yes
Example Code: | sleep 60
CTRL-Z # type the control key together with z, "sleep" will be suspended
jobs # verify "sleep is now a suspended background job
fg # bring "sleep" to the foreground |
|
|
Back to top |
|
|
Skics n00b
Joined: 23 Feb 2003 Posts: 11
|
Posted: Sun Feb 23, 2003 8:49 pm Post subject: |
|
|
Thanks for the help man , I appreciate it. Also, one more question... Do I have to emerge -u world? Does this just update exsisting packages or does it install ones that don't exsist yet? I'm trying to do a stage 3 install. Thanks again. |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sun Feb 23, 2003 8:58 pm Post subject: |
|
|
Skics wrote: | Thanks for the help man |
It was me a pleasure.
Quote: | Do I have to emerge -u world? Does this just update exsisting packages or does it install ones that don't exsist yet? |
This will only update existing packages, except for one case where it will install new package: when the dependencies changed. E.g., lets say you installed program A which depended on lib B. Now, some weeks later, the program has improved to work with lib C instead of B. This time of emerge and assumed you haven't the lib C already installed, lib C will be installed first and the A will be upgraded with support for lib C. |
|
Back to top |
|
|
Skics n00b
Joined: 23 Feb 2003 Posts: 11
|
Posted: Sun Feb 23, 2003 9:02 pm Post subject: |
|
|
Thanks so much for the help man. I will get this thing licked yet!
Cheers,
Skics |
|
Back to top |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Sun Feb 23, 2003 9:09 pm Post subject: |
|
|
Skics wrote: | I just type "fg" to resume? Sorry for being a n00b. |
Yup, if you actually want it to continue in the background you can also type bg
If you later want to go back to that job you type fg followed by the job number.
This is multitasking the old-sk00l way
Another tip
if you start an app that blocks the shell, run it like this:
appname&
it will then run in the background freeing the shell for other stuff. |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Sun Feb 23, 2003 9:15 pm Post subject: |
|
|
gilesjuk wrote: | If you later want to go back to that job you type fg followed by the job number. | to be correct (with % sign ), assuming the job number is 5. Get a list of running background jobs (per shell) with "jobs". |
|
Back to top |
|
|
|