Page 1 of 2

New to portage --

Posted: Fri Jul 06, 2007 17:33
by pacs34
I did not find these answered in the man pages or the other docs I've found.


How can I get a list of all of the packages installed on my box?

How can I find out what files were installed with, say, package 'foo'? (XEmacs is not doing what I expect and I suspect that not all the files I am used to were included when it was installed or, maybe more likely, they're just not in the locations I am used to.)


There must be a way to make changes in a 'make' file before 'emerge' compiles it. How is this done?


Finally, I did an 'emerge --sync' this morning as suggested in the Gentoo Announcement about glibc. It was my first ever. (I've been using Linux for over twelve years but this portage/Sabayon/Gentoo stuff is new to me -- I installed Loop 2 the day before yesterday.) It went fine and at the end I got the following message:

"An update to portage is available. It is _highly_ recommended
that you update portage now, before any other packages are updated.
Please run 'emerge portage' and then update _ALL_ of your configuration
files."

So I updated portage and aftward was advised that 3 files in /etc had to be updated. I did that. No problem. But this advisory to update _ALL_ of my configuration files.... Is that all they meant? How can I "update _ALL_ of [my] configuration files?"

Tia for any assistance here.

Maury

Posted: Fri Jul 06, 2007 19:49
by zouzou85
How can I get a list of all of the packages installed on my box?
I'd suggest using kuroo (gui for portage). at first it will ask you to fill up the empty tree, then refresh it. but when you click on the "installed packages" and there you will see all the packages installed.
How can I find out what files were installed with, say, package 'foo'? (XEmacs is not doing what I expect and I suspect that not all the files I am used to were included when it was installed or, maybe more likely, they're just not in the locations I am used to.)
also in kuroo, you can right-click the package in question and then click "details." a window will come up and when you click on the "installed files" tab, you'll see what and where the files are.
there is another way that you could get the same results in the command line with "equery" command as follows:
equery files "package"
more info about this command is in:
http://www.gentoo.org/doc/en/gentoolkit.xml
http://gentoo-wiki.com/MAN_equery
There must be a way to make changes in a 'make' file before 'emerge' compiles it. How is this done?
check is thread. at the beginning wolfden did a great job showing how to modify make.conf:
http://www.sabayonlinux.org/forum/viewtopic.php?t=5531
also check gentoo's MAN:
http://gentoo-wiki.com/MAN_make.conf_5
So I updated portage and aftward was advised that 3 files in /etc had to be updated. I did that. No problem. But this advisory to update _ALL_ of my configuration files.... Is that all they meant? How can I "update _ALL_ of [my] configuration files?"
yes and no. when you emerge (update) a package, the package's config files come with it. then portage (etc-update or dispatch-conf to be more accurate) will ask you if you want to keep the old config files or use the newer ones that come with the new version of the package.
Usually, it is better to use the new config files unless you modified the file and you don't want to modify it again.
check this link for more info on config files:
http://gentoo-wiki.com/TIP_dispatch-conf

zouzou85

Posted: Sun Jul 08, 2007 21:08
by ScottishDuckHunter
If you want to update all of your config files then use etc-update.
etc-update
After you do that it will quit bugging you.

Posted: Wed Jul 11, 2007 21:20
by Ron.W
ScottishDuckHunter wrote:If you want to update all of your config files then use etc-update.
etc-update
After you do that it will quit bugging you.
Just tried this. Strange result:

Code: Select all

etc-update
Note: The repository at /usr/portage/local/layman/sabayon does not have a profiles/repo_name entry.
      This can reduce the functionality of the repository in some cases.
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/DIR_COLORS (1)
2) /etc/dispatch-conf.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): -1
Exiting: User termination!
NOTE: 2 updates remaining
What should I do now?

Posted: Wed Jul 11, 2007 21:31
by wolfden
check out
http://gentoo-wiki.com/HOWTO_etc-update

and make your selection like it is asking you too

Posted: Wed Jul 11, 2007 22:55
by pacs34
Just to sum up following responses to my questions:

* Kuroo is, indeed, the way to find (a) the files installed with a package and (b) the listing of packages presently installed on my box. Thanks to zouzou85 for that suggestion. I tend to avoid GUI methods and was kinda expecting some elegant command from the console. Accordingly, it is also nice to know about equery. I had never heard of it before and I like it very much. Thanks again, zouzou85. (But that said, kuroo is too simple a way to want to fight.)

* And it's also good to know about 'etc-update.' It worked fine for me. Thanks, ScottishDuckHunter.

Maury

Posted: Wed Jul 11, 2007 23:38
by Ron.W
Thanks, too.
make your selection like it is asking you too
Means I have to find out what these two files are good for, before I can come to a decision, which choice is convenient in this case. This I had already suspected.

Ron.

Posted: Thu Jul 12, 2007 16:43
by ScottishDuckHunter
Ron.W wrote:
ScottishDuckHunter wrote:If you want to update all of your config files then use etc-update.
etc-update
After you do that it will quit bugging you.
Just tried this. Strange result:

Code: Select all

etc-update
Note: The repository at /usr/portage/local/layman/sabayon does not have a profiles/repo_name entry.
      This can reduce the functionality of the repository in some cases.
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/DIR_COLORS (1)
2) /etc/dispatch-conf.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): -1
Exiting: User termination!
NOTE: 2 updates remaining
What should I do now?
Normally you just use -3

Posted: Fri Jul 27, 2007 6:17
by LinuxHack
:D 8) :D

Thanks to "EVERYONE" on this Thread....

I too am NEW to Sabayon, BUT not Linux as a whole.
I've been using Linux for about 3 1/2 years now.

Was having probs with Portage because I've never used Gentoo before this...
Tried it once, BUT at the time it didn't work on several Peices of my hardware which it does now...

But THANKS to all here on this THREAD it's allowed me to get up and running again, With several Programs.... "SABAYON" Rulez... In my Opinion.... :lol:

Re: New to portage --

Posted: Fri Jul 27, 2007 7:52
by dukdukgoos
pacs34 wrote:How can I get a list of all of the packages installed on my box?
For a command line approach try the following (you'll need to emerge gentoolkit first, if it's not already):

Code: Select all

equery list