| View previous topic :: View next topic |
| Author |
Message |
DamnDirtyApe n00b

Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Tue Jan 14, 2003 4:47 pm Post subject: Problem/Misunderstanding with 'emerge -u world' |
|
|
To quote the docs:
| Quote: | | To save time and make sure your favorite packages are kept updated you may manually edit the world file and add entries for these packages. Users upgrading from old versions of Portage may need to populate this file. Recent installations of Gentoo and Portage should have a fairly populated world profile created during installation. |
I took this to mean that, rather than individually emerge each package I wanted to install, I could just edit the /var/cache/edb/world file and add the package names, then run 'emerge -u world' and they'd be installed. When I do, however, I get the following:
| Code: | root@hxx-xx-xx-xxx root # emerge --update world
Calculating world dependencies ...done!
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
root@hxx-xx-xx-xxx root # |
When I simply run 'emerge world', the output is a follows:
| Code: | root@hxx-xx-xx-xxx root # emerge world
Calculating world dependencies
*** Package in world file is not installed: dev-perl/CGI
*** Package in world file is not installed: dev-perl/DBI
*** Package in world file is not installed: dev-perl/DBD-Pg
*** Package in world file is not installed: dev-perl/Time-HiRes
*** Package in world file is not installed: dev-perl/Digest-MD5
*** Package in world file is not installed: dev-perl/XML-Simple
*** Package in world file is not installed: dev-perl/perl-tk ...done!
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
root@hxx-xx-xx-xxx root # |
Where the packages mentioned are the ones I added to the world file. Am I missing a step somewhere, or is this simply not possible? |
|
| Back to top |
|
 |
brain Apprentice


Joined: 16 May 2002 Posts: 229 Location: Farmington Hills, MI
|
Posted: Tue Jan 14, 2003 7:34 pm Post subject: |
|
|
I guess I'm a little lost on what you're trying to accomplish...but I'll give it a shot:
| Quote: | root@hxx-xx-xx-xxx root # emerge --update world
Calculating world dependencies ...done!
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
root@hxx-xx-xx-xxx root # |
This makes sense, since the "--update" flag is trying only to update packages that are currently installed. However, this is where I get confused...
| Quote: | root@hxx-xx-xx-xxx root # emerge world
Calculating world dependencies
*** Package in world file is not installed: dev-perl/CGI
*** Package in world file is not installed: dev-perl/DBI
*** Package in world file is not installed: dev-perl/DBD-Pg
*** Package in world file is not installed: dev-perl/Time-HiRes
*** Package in world file is not installed: dev-perl/Digest-MD5
*** Package in world file is not installed: dev-perl/XML-Simple
*** Package in world file is not installed: dev-perl/perl-tk ...done!
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
root@hxx-xx-xx-xxx root # |
Why are you trying to manually add them to the world file? Just emerge them normally and they will automagically be included for you in "world" from that point forward.
You can just as easily do something like this:
| Code: | | emerge dev-perl/CGI dev-perl/DBI dev-perl/DBD-Pg ....etc |
And get to the same point. _________________ --brain |
|
| Back to top |
|
 |
DamnDirtyApe n00b

Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Tue Jan 14, 2003 9:44 pm Post subject: |
|
|
| brain wrote: | You can just as easily do something like this:
| Code: | | emerge dev-perl/CGI dev-perl/DBI dev-perl/DBD-Pg ....etc |
And get to the same point. |
...then that's probably the approach I'll take. The docs gave me the impression that I could edit the file to include certain packages, and have them installed if they were missing. I thought this might be handy if, for example, you had a room full of workstations that you wanted to install the same apps on; you could just copy your pre-configured world file to each machine, and update. I guess that's not the case... |
|
| Back to top |
|
 |
brain Apprentice


Joined: 16 May 2002 Posts: 229 Location: Farmington Hills, MI
|
Posted: Tue Jan 14, 2003 10:07 pm Post subject: |
|
|
| DamnDirtyApe wrote: |
...then that's probably the approach I'll take. The docs gave me the impression that I could edit the file to include certain packages, and have them installed if they were missing. I thought this might be handy if, for example, you had a room full of workstations that you wanted to install the same apps on; you could just copy your pre-configured world file to each machine, and update. I guess that's not the case... |
You're absolutely right, that would be helpful. I don't think the feature is working as advertised in the docs, so if you're willing I'd file a bug report to have it straightened out. _________________ --brain |
|
| Back to top |
|
 |
red_over_blue Guru


Joined: 16 Dec 2002 Posts: 310
|
Posted: Tue Jan 14, 2003 10:56 pm Post subject: |
|
|
I interpreted the docs the same way as damndirtyape, and had the same idea in mind as him. Suppose I wanted to do a fresh install for some reason, or make another machine identical to mine, I could just copy the world file along with a couple other config files, install gentoo, copy the world and config files over, and then do an "emerge world" and it would install all the software I wanted.
I hope this is only a bug and that it will get fixed. It would make sytem administration (setup anyway) very easy for a large network. |
|
| Back to top |
|
 |
DamnDirtyApe n00b

Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
|
| Back to top |
|
 |
|