[opensuse] Help locating text file in remote repository
Hi everyone: I ask for your help in finding a specific file in a remote repository. Specifically, I am looking for an Haskell file named "Prelude.html." For those unfamiliar with Haskell, there are a number of files with this name; I am looking for a specific one canonically located in the ../base-4.12.0.0-docs/src directory [1]. I have tried searching with zypper to no avail: dutch@tumbleweed3500:~> zypper se --provides Prelude.html Loading repository data... Reading installed packages... No matching items found. Using the full path to the file does work, though: dutch@tumbleweed3500:~> zypper se --provides /usr/share/doc/ghc-8.6.5/html/libraries/base-4.12.0.0/Prelude.html Loading repository data... Reading installed packages... S | Name | Summary | Type --+----------------+----------------------------------------+-------- i | ghc-base-devel | Haskell base library development files | package However, I am looking for the version of Prelude.html that resides in the src/ subdirectory, but the canonical location provides no results: dutch@tumbleweed3500:~> zypper se --provides /usr/share/doc/ghc-8.6.5/html/libraries/base-4.12.0.0/src/Prelude.html Loading repository data... Reading installed packages... No matching items found. I also tried using zypper se --file-list Prelude, but that only returns package names including "prelude," not packages including a file named "Prelude." I have also tried a couple of utilities (scout, cnf) but they don't seem to search for text files. So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for? Thanks for your help. [1] http://hackage.haskell.org/package/base-4.12.0.0/docs/. There are two Prelude.html files listed here; note about half way down the page there is a src/ entry with the second Prelude.html file. This is the file I am searching for. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/06/2019 15.30, Dutch Ingraham wrote:
Hi everyone:
So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for?
Thanks for your help.
Do you know the specific opensuse repo or repos that may have the file? I may be able to concoct something. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 6/9/19 12:15 PM, Carlos E. R. wrote:
On 09/06/2019 15.30, Dutch Ingraham wrote:
Hi everyone:
So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for?
Thanks for your help.
Do you know the specific opensuse repo or repos that may have the file? I may be able to concoct something.
Hi Carlos: It seems like all ghc packages are in the Main Repository (OSS) - at least the ~50 packages I have installed are. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/06/2019 19.55, Dutch Ingraham wrote:
On 6/9/19 12:15 PM, Carlos E. R. wrote:
On 09/06/2019 15.30, Dutch Ingraham wrote:
Hi everyone:
So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for?
Thanks for your help.
Do you know the specific opensuse repo or repos that may have the file? I may be able to concoct something.
Hi Carlos:
It seems like all ghc packages are in the Main Repository (OSS) - at least the ~50 packages I have installed are.
Then grep this file: <http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ARCHIVES.gz> Or use the command pin - but it doesn't use the complete list, just the one on the DVD. Thus I concoct my own ARCHIVES with an editor. The best command would be webpin, but it is broken. Rather the webserver it depends on is broken. For 15.0 there are no results: pin 0.38 - package info for src/Prelude.html ------------------------------------------------------------------ *** no rpm named src/Prelude.html installed ------------------------------------------------------------------ grepping /var/lib/pin/ARCHIVES.gz ... please wait ------------------------------------------------------------------ *** zgrep src/Prelude.html /var/lib/pin/ARCHIVES.gz ------------------------------------------------------------------ /tmp/.pin_packinfo_17019.Ul7ZBT lines 1-16/16 (END) -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 6/9/19 1:02 PM, Carlos E. R. wrote:
On 09/06/2019 19.55, Dutch Ingraham wrote:
On 6/9/19 12:15 PM, Carlos E. R. wrote:
On 09/06/2019 15.30, Dutch Ingraham wrote:
Hi everyone:
So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for?
Thanks for your help.
Do you know the specific opensuse repo or repos that may have the file? I may be able to concoct something.
Hi Carlos:
It seems like all ghc packages are in the Main Repository (OSS) - at least the ~50 packages I have installed are.
Then grep this file:
<http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ARCHIVES.gz>
Or use the command pin - but it doesn't use the complete list, just the one on the DVD. Thus I concoct my own ARCHIVES with an editor.
The best command would be webpin, but it is broken. Rather the webserver it depends on is broken.
Yes, I tried webpin as well, but as noted it doesn't work. (Let me point out now, with my apologies for not specifying in my original post, that I am on Tumbleweed.) However, grepping the archive did find the file. Here is the operative line, split for width: 539627:./x86_64/ghc-bootstrap-8.4.3-lp151.2.2.x86_64.rpm: -rw-r--r-- 1 root root 53376 Apr 27 21:55 /opt/share/doc/ghc-8.4.3/html/libraries/base-4.11.1.0/src/Prelude.html So I downloaded the Tumbleweed ARCHIVE.gz file and grepped that. The package ghc-bootstrap (and the somewhat strange path /opt/share/...) is not available in Tumbleweed and the same file is NOT present there. So I'll assume at this point the file (and the package ghc-bootstrap) has not been included in Tumbleweed for whatever reason. Carlos - thank you for your effort and the clarifying information. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 6/9/19 2:55 PM, Dutch Ingraham wrote:
On 6/9/19 1:02 PM, Carlos E. R. wrote:
On 09/06/2019 19.55, Dutch Ingraham wrote:
On 6/9/19 12:15 PM, Carlos E. R. wrote:
On 09/06/2019 15.30, Dutch Ingraham wrote:
Hi everyone:
So, I have two questions: (1) is it possible to search a remote repository for opensuse files WITHOUT first having the full path name to the file? and (2) does opensuse package the specific file I'm looking for?
Thanks for your help.
Do you know the specific opensuse repo or repos that may have the file? I may be able to concoct something.
Hi Carlos:
It seems like all ghc packages are in the Main Repository (OSS) - at least the ~50 packages I have installed are.
Then grep this file:
<http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ARCHIVES.gz>
Or use the command pin - but it doesn't use the complete list, just the one on the DVD. Thus I concoct my own ARCHIVES with an editor.
The best command would be webpin, but it is broken. Rather the webserver it depends on is broken.
Yes, I tried webpin as well, but as noted it doesn't work.
(Let me point out now, with my apologies for not specifying in my original post, that I am on Tumbleweed.)
However, grepping the archive did find the file. Here is the operative line, split for width:
539627:./x86_64/ghc-bootstrap-8.4.3-lp151.2.2.x86_64.rpm: -rw-r--r-- 1 root root 53376 Apr 27 21:55 /opt/share/doc/ghc-8.4.3/html/libraries/base-4.11.1.0/src/Prelude.html
So I downloaded the Tumbleweed ARCHIVE.gz file and grepped that. The package ghc-bootstrap (and the somewhat strange path /opt/share/...) is not available in Tumbleweed and the same file is NOT present there. So I'll assume at this point the file (and the package ghc-bootstrap) has not been included in Tumbleweed for whatever reason.
Carlos - thank you for your effort and the clarifying information.
It is available in factory according to an 'osc se' ken@tosh:~> osc se ghc-bootstrap No matches found for 'ghc-bootstrap' in projects #################################################################### matches for 'ghc-bootstrap' in packages: # Project # Package ... openSUSE:Factory ghc-bootstrap ... ken@tosh:~> Not sure it will help. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 9 Jun 2019 15:08:58 -0400 Ken Schneider - openSUSE <suse-list3@bout-tyme.net> wrote:
It is available in factory according to an 'osc se'
ken@tosh:~> osc se ghc-bootstrap
Why do I need a user account and password to run that command? A user account for what? $ osc se ghc-bootstrap Your user account / password are not configured yet. You will be asked for them below, and they will be stored in /home/me/.config/osc/oscrc for future use. Creating osc configuration file /home/me/.config/osc/oscrc ... Username: junk Password: done Server returned an error: HTTP Error 401: Unauthorized -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 6/9/19 2:08 PM, Ken Schneider - openSUSE wrote:
It is available in factory according to an 'osc se'
ken@tosh:~> osc se ghc-bootstrap No matches found for 'ghc-bootstrap' in projects #################################################################### matches for 'ghc-bootstrap' in packages:
# Project # Package ...
openSUSE:Factory ghc-bootstrap ...
ken@tosh:~>
Not sure it will help.
Hi Ken: I'm very new to Haskell/ghc, so I won't presume to know what that means. However, the package description reads: "ghc-bootstrap Binary distributions of The Glorious Glasgow Haskell Compiler This package contains a binary distribution of "The Glorious Glasgow Haskell Compilation System". See README.openSUSE on how the tarballs were produced. ***Do not install this package!*** Install 'ghc' instead. Version 8.4.3 Size 123 MB openSUSE Tumbleweed" [Emphasis added.] so it seems like some packaging changes may be underway? At this point, I'm just happy that the file was confirmed to not be available right now and I can stop this obsessive searching for it! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/06/2019 20.55, Dutch Ingraham wrote:
On 6/9/19 1:02 PM, Carlos E. R. wrote:
Then grep this file:
<http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ARCHIVES.gz>
Or use the command pin - but it doesn't use the complete list, just the one on the DVD. Thus I concoct my own ARCHIVES with an editor.
The best command would be webpin, but it is broken. Rather the webserver it depends on is broken.
Yes, I tried webpin as well, but as noted it doesn't work.
(Let me point out now, with my apologies for not specifying in my original post, that I am on Tumbleweed.)
You did, sort of, but I did not notice :-) It was in your command line: ]> dutch@tumbleweed3500:~> zypper se --provides Prelude.html But you did grasp the idea :-)
However, grepping the archive did find the file. Here is the operative line, split for width:
539627:./x86_64/ghc-bootstrap-8.4.3-lp151.2.2.x86_64.rpm: -rw-r--r-- 1 root root 53376 Apr 27 21:55 /opt/share/doc/ghc-8.4.3/html/libraries/base-4.11.1.0/src/Prelude.html
Trick, for Thunderbird, which I see you use. Tools/Addons: add "Toggle Word Wrap" - with that, you can set a post to not wrap lines. Unfortunately, not paragraphs.
So I downloaded the Tumbleweed ARCHIVE.gz file and grepped that. The package ghc-bootstrap (and the somewhat strange path /opt/share/...) is not available in Tumbleweed and the same file is NOT present there. So I'll assume at this point the file (and the package ghc-bootstrap) has not been included in Tumbleweed for whatever reason.
But you can install it, nevertheless? Searching on 15.1, which is what I have available, I find it: cer@Telcontar:~> zypper --no-refresh se ghc-bootstrap Loading repository data... Reading installed packages... S | Name | Summary | Type --+---------------+---------------------------------------------------------------+-------- | ghc-bootstrap | Binary distributions of The Glorious Glasgow Haskell Compiler | package cer@Telcontar:~> If for whatever reason that package should not be installed, you can still download it and extract manually a file. I do that with 'mc'.
Carlos - thank you for your effort and the clarifying information.
Welcome :-) One tidbit more: you can copy that ARCHIVE.gz file to "/var/lib/pin/ARCHIVES.gz" and that way the "pin" command can work. Although I have never tested it in TW. What I do is download both the oss and non-oss versions, unzip, join one an the other with an editor, compress again, and place in the directory. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On Mon, 10 Jun 2019 12:47:44 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
One tidbit more: you can copy that ARCHIVE.gz file to "/var/lib/pin/ARCHIVES.gz" and that way the "pin" command can work. Although I have never tested it in TW.
I got curious about the pin command. It seems it's not installed on my system and cnf tells me it's in a non-standard repository. Furthermore, I can't find any online documentation for it. $ cnf pin The program 'pin' can be found in the following packages: * pin [ path: /usr/bin/pin, repository: zypp (repo-oss) ] * pin [ path: /usr/bin/pin, repository: zypp (repo-update) ] So now my interest is really piqued :) Why is such an apparently useful command hidden in such an odd place, and is there any documentation that explains its capabilities etc available online without installing it?
What I do is download both the oss and non-oss versions, unzip, join one an the other with an editor, compress again, and place in the directory.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/06/2019 17.06, Dave Howorth wrote:
On Mon, 10 Jun 2019 12:47:44 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
One tidbit more: you can copy that ARCHIVE.gz file to "/var/lib/pin/ARCHIVES.gz" and that way the "pin" command can work. Although I have never tested it in TW.
I got curious about the pin command.
It seems it's not installed on my system and cnf tells me it's in a non-standard repository. Furthermore, I can't find any online documentation for it.
$ cnf pin
The program 'pin' can be found in the following packages: * pin [ path: /usr/bin/pin, repository: zypp (repo-oss) ] * pin [ path: /usr/bin/pin, repository: zypp (repo-update) ]
So now my interest is really piqued :)
Why is such an apparently useful command hidden in such an odd place,
But that is the standard repository, the oss repository. It is not hidden, just not installed by default anymore.
and is there any documentation that explains its capabilities etc available online without installing it?
It is just a shell script. 472 lines, so it is simple. And 75 of those are the changelog. It is an "ancient" script, goes back to 2001 at least. What it does is simple: first it queries rpm to see if the file is installed already (rpm -qi, ql), and if not it greps the list of files that comes in the DVD, ie the ARCHIVES.gz file that comes on the DVD. If the file is not present, it asks for the DVD to copy it. Nowdays it is more useful to copy the file from the upstream server instead, but this has to be done manually. But the tool is older than the existence of various repositories, thus its capabilities are thus limited. The newer tool "webpin" is a wonderful tool that searches *all* repositories, but it depends on an external server that does the actual search, but this server is basically dead. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (4)
-
Carlos E. R.
-
Dave Howorth
-
Dutch Ingraham
-
Ken Schneider - openSUSE