LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 03-17-2011, 04:49 AM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
Emerge - check if package is installed


Hello,
I have installed Qt 4.7.2 manually yesterday, but when I want to install some other applications or libs, emerge always want me to install qt-core. (of older version).

Is there any way to make emerge consider qt as installed? or just to check some path and actually find, that it is installed.

Thanks
 
Old 03-17-2011, 10:00 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by SkyerSK View Post
Hello,
I have installed Qt 4.7.2 manually yesterday, but when I want to install some other applications or libs, emerge always want me to install qt-core. (of older version).

Is there any way to make emerge consider qt as installed? or just to check some path and actually find, that it is installed.

Thanks
Why didn't you just unmask qt-core-4.7.2 and emerge it?
 
Old 03-17-2011, 02:06 PM   #3
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
I've got very slow and limited internet connection here (on target computer), so I downloaded qt, KDE, and everything bigger from the other place. (I was also looking for some Linux software dvds, but that's different topic.)
 
Old 03-17-2011, 02:57 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
If you need to download from another machine you can get the files from ftp://ftp.osuosl.org/pub/gentoo/distfiles/ or whatever mirror you choose.

For example, for qt

ftp://ftp.osuosl.org/pub/gentoo/dist...c-4.7.2.tar.gz

Then, put it in /usr/portage/distfiles/
 
Old 03-18-2011, 08:49 AM   #5
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks,
I already figured that out myself, but I was interested if it's not possible to do the thing I mentioned before. I was introduced of portage as being highly configurable and advanced package manager, so I wonder where does it store informations about installed software and corresponding paths.
 
Old 03-21-2011, 05:34 PM   #6
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
The best way might be to create your own qt-core-4.7.2 and then install it with emerge.
 
Old 03-22-2011, 02:43 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by SkyerSK View Post
I've got very slow and limited internet connection here (on target computer), so I downloaded qt, KDE, and everything bigger from the other place. (I was also looking for some Linux software dvds, but that's different topic.)
I might not be getting your point, but, the size of QT is the same with independence on how you install it. So, to answer your question, yes, there's a way to tell portage you installed a package without portage. It's /etc/portage/profile/package.provided, for example, you would add into that file this line:

Code:
x11-libs/qt-core
But, I completely advise against that. What you should do instead is to download the source package and put it into /usr/src/distfiles/. If portage can find it there it won't try to download it again (as long as the checksums are ok).

You can use this command to see the needed files:

Code:
emerge -pf qt-core
Note them down, then download them elsewhere and copy them to your local repository, in the place I told you above. If the version is the same you might be able to re-use the source packages you already have.

---------- Post added 22nd Mar 2011 at 09:44 ----------

Quote:
Originally Posted by fancylad View Post
The best way might be to create your own qt-core-4.7.2 and then install it with emerge.
No ebuild with shorten the size of qt-core.
 
Old 04-21-2011, 03:20 AM   #8
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your answer,
what I tried to tell is that by the time I was trying to install Qt, I didn't know the possibility to download files from /distfiles/ directory on FTP server, so I decided to download Qt from it's official site, and install it by hand.
 
Old 04-21-2011, 06:30 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I understood, but still it's not the cleanest way to do so in Gentoo. It's not only about portage being aware of the package you installed by hand, but also about the rest of your user land having to live with such software. Note that in most distros, leftovers from source/lib packages are not -potentially- as harmful as they are in Gentoo, being it a source based meta-distro. If you install qt-core by hand and you are not carefull enough to preserve the build tree (so you can make uninstall or similar) you will be leaving bits and pieces behind each time you upgrade qt-core, or whenever you decide to go from your manually installed qt-core to the portage one.

One day you might be wondering why package-X doesn't compile against your newly installed qt-core version that it requires when it's really trying to compile and/or link against the old pieces lying around in your system. And compilation errors are -usually- explicit enough and easy to diagnose, but there are some more obscure things that can happen and that are harder to diagnose, requiring to dive into strace, dbg or similar tools to find what is causing some odd runtime error on something that should just work.
 
Old 04-21-2011, 08:43 AM   #10
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for explanation,
I'm already using portage's one, and understand the reasons. As I said that time I was (I thought I was) forced to do that, because I didn't know about availability of files through FTP, and had slow internet connection.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to use aptitude to check for an installed provided package kevinbenko Debian 2 01-16-2011 12:01 PM
[SOLVED] How to check if installed package or library is needed affinity Slackware 15 12-05-2009 09:08 AM
emerge uavd world blocked package puntjuh Linux - Distributions 2 09-10-2007 05:18 PM
how to check rpm package is installed in the fedora 7? melvinong Linux - Server 1 07-19-2007 02:38 AM
How to check if a rpm Package is already installed? DarkExile Linux - Newbie 4 12-14-2004 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration