[opensuse] Finding what package contains an uninstalled filename -- how?
Patrick Shanahan wrote:
http://software.opensuse.org/search Searches for packages. Not 3-letter commands.
How do people search for files? Just saw the same type of question on the vim list -- he wanted to find where his distro (CentOS) had a particular header file. I had to create a 550MB rpm-file-listing to be able to find what package or rpm a given file was in. Even then for a short name name, there are often way too many matches (410 matches for string 'cnf') to be very useful. How are users suppose to find files in their distro? I don't know of many that would know how or want to create a 550MB index even when it is useful. p.s. -- tnx, Carlos for a useful reply! I didn't even know 'cnf' stood for something until I saw the package name (though it was a configuration tool I didn't have). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-03-22 03:25, L A Walsh wrote:
Patrick Shanahan wrote:
http://software.opensuse.org/search Searches for packages. Not 3-letter commands.
How do people search for files? Just saw the same type of question on the vim list -- he wanted to find where his distro (CentOS) had a particular header file. I had to create a 550MB rpm-file-listing to be able to find what package or rpm a given file was in.
Ah, then have a look at the command "pin", because it does exactly that - except that the file list is obtained from ARCHIVES file in the DVD. Or from the ftp server. Or use the command "webpin", which does a similar thing but against an online database of all repos. The problem is, it fails often.
Even then for a short name name, there are often way too many matches (410 matches for string 'cnf') to be very useful.
cnf is very useful for commands.
How are users suppose to find files in their distro? I don't know of many that would know how or want to create a 550MB index even when it is useful.
I do ;-) Reminds me, I don't have it yet for leap.
p.s. -- tnx, Carlos for a useful reply! I didn't even know 'cnf' stood for something until I saw the package name (though it was a configuration tool I didn't have).
Yes, funny name :-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 2017-03-22 04:11, Carlos E. R. wrote:
On 2017-03-22 03:25, L A Walsh wrote:
How are users suppose to find files in their distro? I don't know of many that would know how or want to create a 550MB index even when it is useful.
I do ;-)
Reminds me, I don't have it yet for leap.
There is this: http://download.opensuse.org/distribution/leap/42.2/repo/oss/ARCHIVES.gz But there is no ARCHIVES.gz for non-oss. :-? -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
Carlos E. R. wrote:
http://download.opensuse.org/distribution/leap/42.2/repo/oss/ARCHIVES.gz
Which is fine for the files on the DVD that it indexes, but I usually have my rpm's downloaded from the internet, which don't have the same package-list as on the DVD.
But there is no ARCHIVES.gz for non-oss. :-?
---- Most directories that don't have that (non-oss, src, others, and all the update dirs, and any other repos that are enabled). I also tend to merge my x86_64+noarch rpms into 1 directory, then fold update rpms into it as they become available. That way, except for sources, I usually only have 1 directory to search through for a package name. I also remove all the incremental rpms and all but the highest version-num of rpms having multiple version numbers. As for this: Carlos E. R. wrote:
Ah, then have a look at the command "pin", because it does exactly that - except that the file list is obtained from ARCHIVES file in the DVD. Or from the ftp server.
Or use the command "webpin", which does a similar thing but against an online database of all repos. The problem is, it fails often.
pin *** pin found no ARCHIVES_13.2.gz file in /var/lib/pin/ pin will copy the files, please enter root password : Password: no file ARCHIVES_13.2.gz found
--- Yeah... those don't work for me... (*sigh*) please insert CD1/DVD in your CD-ROM/DVD drive / bitte CD1/DVD einlegen
How are users suppose to find files in their distro? I don't know of many that would know how or want to create a 550MB index even when it is useful.
I do ;-)
---- Other than the ARCHIVES file? My index for 13.2:
cd /home/rpms/13.2 Ishtar:rpms/13.2> du -sh . 550M . Ishtar:rpms/13.2> find . -type f |wc 32430 32430 2830286
One file for each package-rpm list: easier to generate & maintain that way. Ex. I can process the list of rpms in parallel w/1-thread/cpu.
I didn't even know 'cnf' stood for something until I saw the package name (though it was a configuration tool I didn't have).
Yes, funny name :-)
Well, makes sense if you know what rpm it belongs to. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-03-22 20:45, L A Walsh wrote:
Carlos E. R. wrote:
http://download.opensuse.org/distribution/leap/42.2/repo/oss/ARCHIVES.gz
Which is fine for the files on the DVD that it indexes, but I usually have my rpm's downloaded from the internet, which don't have the same package-list as on the DVD.
Then use webpin.
But there is no ARCHIVES.gz for non-oss. :-?
---- Most directories that don't have that (non-oss, src, others, and all the update dirs, and any other repos that are enabled).
In the past, they did. Example: http://download.opensuse.org/distribution/13.1/repo/non-oss/ARCHIVES.gz
As for this:
Carlos E. R. wrote:
Ah, then have a look at the command "pin", because it does exactly that - except that the file list is obtained from ARCHIVES file in the DVD. Or from the ftp server.
Or use the command "webpin", which does a similar thing but against an online database of all repos. The problem is, it fails often.
--- Yeah... those don't work for me... (*sigh*)
Well, you depart so much from the standard that it is no surprise :-P
pin *** pin found no ARCHIVES_13.2.gz file in /var/lib/pin/ pin will copy the files, please enter root password : Password: no file ARCHIVES_13.2.gz found please insert CD1/DVD in your CD-ROM/DVD drive / bitte CD1/DVD einlegen
So? Put the file where it expects to find it. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 03/22/2017 06:59 PM, Carlos E. R. wrote:
On 2017-03-22 20:45, L A Walsh wrote:
Carlos E. R. wrote:
http://download.opensuse.org/distribution/leap/42.2/repo/oss/ARCHIVES.gz
Which is fine for the files on the DVD that it indexes, but I usually have my rpm's downloaded from the internet, which don't have the same package-list as on the DVD. Then use webpin.
Thank you Carlos, I'd been living without webpin on Leap and I was going crazy replacing it with 'zse' (zypper search alias). webpin just formats things so nice and minimally, that it is a treat to use. I hadn't used it because it wasn't any any of the standard repos and hadn't really looked for it. For all those in the same boat, it is in the openSUSE Tools repo: http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_42.2/ Works great -- let's hope the server stays up. -- David C. Rankin, J.D.,P.E.
participants (3)
-
Carlos E. R.
-
David C. Rankin
-
L A Walsh