Manjaro Linux Forum

Technical Issues and Assistance => Package Management => Topic started by: Ayceman on 15. December 2013, 23:59:26

Title: pkgfile useless due to lack of .files in repos
Post by: Ayceman on 15. December 2013, 23:59:26
Exactly what it say on the tin. Manjaro makes the pkgfile program useless because there are no .files files in the repos to update its package database.

Look at the output:

Code: [Select]
sudo pkgfile --update
[sudo] password for ayceman:
:: Updating 5 repos...
warning: download failed: http://www.paradoxcomputers.com.au/manjaro/repo/compiz/x86_64/compiz.files [HTTP 404]
error: failed to update repo: compiz
warning: download failed: http://manjaro.mirrors.linux.ro/repos/stable/core/x86_64/core.files [HTTP 404]
warning: download failed: http://manjaro.mirrors.linux.ro/repos/stable/extra/x86_64/extra.files [HTTP 404]
warning: download failed: http://manjaro.mirrors.linux.ro/repos/stable/multilib/x86_64/multilib.files [HTTP 404]
warning: download failed: http://manjaro.mirrors.linux.ro/repos/stable/community/x86_64/community.files [HTTP 404]
warning: download failed: http://ftp.lug.ro/manjaro/stable/core/x86_64/core.files [HTTP 404]
warning: download failed: http://ftp.lug.ro/manjaro/stable/multilib/x86_64/multilib.files [HTTP 404]
warning: download failed: http://ftp.lug.ro/manjaro/stable/extra/x86_64/extra.files [HTTP 404]
warning: download failed: http://ftp.lug.ro/manjaro/stable/community/x86_64/community.files [HTTP 404]
warning: download failed: http://mirrors.xservers.ro/manjaro/stable/core/x86_64/core.files [HTTP 404]
warning: download failed: http://mirrors.xservers.ro/manjaro/stable/community/x86_64/community.files [HTTP 404]
warning: download failed: http://mirrors.xservers.ro/manjaro/stable/multilib/x86_64/multilib.files [HTTP 404]
warning: download failed: http://mirrors.xservers.ro/manjaro/stable/extra/x86_64/extra.files [HTTP 404]
warning: download failed: http://mirrors.serverhost.ro/manjaro/packages/stable/core/x86_64/core.files [HTTP 404]
error: failed to update repo: core
warning: download failed: http://mirrors.serverhost.ro/manjaro/packages/stable/community/x86_64/community.files [HTTP 404]
error: failed to update repo: community
warning: download failed: http://mirrors.serverhost.ro/manjaro/packages/stable/extra/x86_64/extra.files [HTTP 404]
error: failed to update repo: extra
warning: download failed: http://mirrors.serverhost.ro/manjaro/packages/stable/multilib/x86_64/multilib.files [HTTP 404]
error: failed to update repo: multilib
Title: Re: pkgfile useless due to lack of .files in repos
Post by: mesamoo on 19. December 2013, 20:55:16

Crazy,
First time I try to use pkgfile was today, had same failure.
Came here and decided to do search before posting new question :-)

so yes, I confirm this problem
Title: Re: pkgfile useless due to lack of .files in repos
Post by: gadelat on 20. March 2014, 12:26:43
What the heck? Instead of fixing repos Manjaro devs removed pkgfile from repos? Btw works fine when you put one of the arch linux mirrors into mirrorlist.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Esclapion on 20. March 2014, 12:58:34
pkgfile is not maintained by us, it's specifical to Archlinux.

Why don't use pacman -Qo instead ?

(edit)

Code: [Select]
[root@corvo pat]# pacman -Qo makepkg
/usr/bin/makepkg appartient à pacman 4.1.2-5
Title: Re: pkgfile useless due to lack of .files in repos
Post by: gadelat on 20. March 2014, 16:28:40
It's for different purpose. Pkgfile is used when you want to know what package you need to install when something complains it's missing executable. Pacman -Qo won't give you anything useful if you don't have the package already installed.
Code: [Select]
$ pkgfile svn
extra/subversion
$ pacman -Qo svn
error: failed to find 'svn' in PATH: No such file or directory

Manjaro synces repository from Arch Linux repository, so please do it properly and sync ".files" files too. It's not hard to do and it doesn't have any drawbacks. And then remove pkgfile package from your repository blacklist, because it works as it's supposed-it's not problem with pkgfile, it's problem with your repos.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Esclapion on 20. March 2014, 16:33:59
Code: [Select]
[pat@corvo configs]$ pacman -Qo svn
/usr/bin/svn appartient à subversion 1.8.8-1

Code: [Select]
[pat@corvo configs]$ pacman -Si subversion
(...)
Dépend de             : sqlite  file  serf  systemd
Dépendances opt.      : libgnome-keyring: for GNOME Keyring for auth credentials
                        kdeutils-kwallet: for KWallet for auth credentials
                        bash-completion: for svn bash completion
                        python2: for some hook scripts
                        java-environment: for Java support
                        ruby: for some hook scripts
(...)
Title: Re: pkgfile useless due to lack of .files in repos
Post by: gadelat on 20. March 2014, 19:23:33
Did you read what i wrote?
Pacman -Qo won't give you anything useful if you don't have the package already installed



So guess what, you have subversion already installed. Try it for executable for which you don't have package installed, or do
Code: [Select]
# pacman -R subversion
$ pacman -Qo svn
Title: Re: pkgfile useless due to lack of .files in repos
Post by: philm on 20. March 2014, 19:30:25
We have to update our server tool boxit to support this. Since I can't reach Roland to update it I can't help it. We have to wait for this feature.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Esclapion on 20. March 2014, 20:13:00
Totem not installed :

Code: [Select]
[pat@corvo ~]$ pacman -Si totem
(...)
Dépend de             : gst-plugins-base  gst-plugins-good  totem-plparser  desktop-file-utils
                        iso-codes  libpeas  hicolor-icon-theme  gnome-icon-theme
                        gsettings-desktop-schemas  dconf  clutter-gst  clutter-gtk  python-gobject
                        python-xdg  gst-plugins-bad
Dépendances opt.      : gst-plugins-ugly: Extra media codecs
                        gst-libav: Extra media codecs
                        lirc-utils: Infrared Remote Control plugin
                        grilo-plugins: Browse sidebar (remote media)
                        zeitgeist: Zeitgeist plugin
(...)
Title: Re: pkgfile useless due to lack of .files in repos
Post by: gadelat on 20. March 2014, 23:36:30
Totem not installed :

Code: [Select]
[pat@corvo ~]$ pacman -Si totem
(...)
Dépend de             : gst-plugins-base  gst-plugins-good  totem-plparser  desktop-file-utils
                        iso-codes  libpeas  hicolor-icon-theme  gnome-icon-theme
                        gsettings-desktop-schemas  dconf  clutter-gst  clutter-gtk  python-gobject
                        python-xdg  gst-plugins-bad
Dépendances opt.      : gst-plugins-ugly: Extra media codecs
                        gst-libav: Extra media codecs
                        lirc-utils: Infrared Remote Control plugin
                        grilo-plugins: Browse sidebar (remote media)
                        zeitgeist: Zeitgeist plugin
(...)
First, not every package is named as executable. I purposely gave example for svn even when I know that most people have subversion installed because its executable is named differently than package. People who read some kind of installation instructions on web and don't know what is subversion would be confused why it doesn't work or which pacman package they need to install. Second, many packages gives you multiple executables. For me, it was very useful to me when I did clean net install of Manjaro and AUR couldn't build any single package. To compile anything among others it needed "strip" binary. Thanks to pkgfile I could find that I need binutils package for making this executable available so I can build something. You can solve lot of problems like this thanks to pkgfile without resorting to google. It's faster and most reliable.

We have to update our server tool boxit to support this. Since I can't reach Roland to update it I can't help it. We have to wait for this feature.
:) Great, finally someone who tries to find how it can be done and not how to avoid doing it.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Ayceman on 21. March 2014, 18:45:32
Totem not installed :

It's not about dependencies, it's about listing the files that any package in a repo is supposed to copy to your system, which is useful in some particular situations. Essentially it's the reverse of -Qo and a -Ql for non-installed packages.

Good to know that it's now acknowledged by the core team.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: gadelat on 22. August 2014, 14:06:22
What's the state of solving this problem?
Title: Re: pkgfile useless due to lack of .files in repos
Post by: bogen on 10. October 2014, 02:33:59
I would like to know the status of this as well. In regular archlinux I use pkgfile a lot (for the same purpose, debian/ubuntu has apt-file and fedora/centos/etc has yum provides). I don't know a valid technical reason why it would be left out of manjaro.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: indefiance11 on 25. December 2014, 01:24:35
Ran into this issue today.  If its a simple fix as it seems to be according to the comments here,  I'm wondering how long till this is implemented?   I need to use a script (debtap) that depends on a functioning pkgfile before it can run...
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Skully on 25. December 2014, 16:55:32
I too would like to see this working in Manjaro.  In fedora I use "yum provides" quite alot, and was sad that Manjaro didn't seem to have a way of doing it.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: throwaway675 on 28. December 2014, 17:36:39
Same for me here, I need pkgfile works with Manjaro.  Unfortunately there is no alternative to pkgfile.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: artoo on 28. December 2014, 18:25:05
Good to know that it's now acknowledged by the core team.

The team has been aware of this.
I made some time ago an internal request for pkgfile.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Bach on 15. March 2015, 17:29:12
hello,
my turn to need pkgfile :/, any news ?
Title: Re: pkgfile useless due to lack of .files in repos
Post by: philm on 15. March 2015, 17:30:32
boxit needs to be updated to use that feature. Until then we don't offer it ...
Title: Re: pkgfile useless due to lack of .files in repos
Post by: rolfep on 17. March 2015, 15:38:41
The function of searching for a file or string contained by a file name in packages in the repositories is something I've come to depend on since starting with Mandrake Linux and its urpmi wrapper to rpm 15 years ago.  I'm new to Manjaro and like how it works but I need this function.  Thanks.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: hoplaahei on 08. April 2015, 19:03:04
Another user waiting for this feature. Thanks.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 15. April 2015, 11:33:36
I hope this feature gets included at some point. Pkgfile seems to be quite a bit lighter than the AUR alternative command-not-found. I wish to included one of them on bspwm-respin, because it makes using command line easier for new users. Having pkgfile would help to make iso lighter.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Jeannie on 09. November 2015, 20:47:10
Any news on this?
J.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: AndyP on 09. December 2015, 00:37:15
boxit needs to be updated to use that feature. Until then we don't offer it ...
So I noticed the project leader name and image on https://github.com/manjaro/boxit match yours here (your post sounds like "can't do anything about it until those other people step up their game"), that you were last active on the forum yesterday and that the last commit to boxit was way back in June :'(
Title: Re: pkgfile useless due to lack of .files in repos
Post by: handy on 09. December 2015, 00:55:02
Roland is extremely busy & difficult to get in contact with. Phil can't do what needs to be done without Roland's input.

Like it or lump it, you can't change it.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 09. December 2015, 02:07:17
Anyway to contribute to adding this?
Title: Re: pkgfile useless due to lack of .files in repos
Post by: handy on 09. December 2015, 04:15:48
Anyway to contribute to adding this?

I don't think that it is as simple as that.

I expect that Phil will have something to say on the matter.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 09. December 2015, 04:26:16
Yeah, I figured it would not be simple, hence the implied "is there a way to" instead of "how to". Too bad we lack it, pkgfile would be really useful.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: handy on 09. December 2015, 04:53:39
I'm sure that it will be incorporated into boxit. Just like I'm sure that the new forum & wiki that is being built will arrive. Truly, I mean what I'm saying.

I'm astounded that Phil & Roland find the time necessary to volunteer to the initial creation of Manjaro, let alone to the never ending maintenance/improvement/management of the distro.

These guys are busy, busy.

People who complain (not pointed at you Chrysostomus) about what people give them for free out of their volunteered time, really need to take a step back & look at the situation from a different angle.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 09. December 2015, 05:06:08
Yeah, it is a massive project. Hence contribution is beneficial.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 09. December 2015, 05:09:21
Btw, I think it is ok to complain if one is ready to do sonething about it and can realistically do so.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: handy on 09. December 2015, 05:13:28
Some things require direct server access.

Anyway, I'm out of this, I've probably said more than I should anyway. ;)
Title: Re: pkgfile useless due to lack of .files in repos
Post by: eailfly on 19. February 2016, 08:27:14
Just want know is the pkgfile work now?
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Chrysostomus on 19. February 2016, 08:43:33
Not as far as I know
Title: Re: pkgfile useless due to lack of .files in repos
Post by: Jeannie on 23. February 2016, 17:54:27
Any news on this?
J.
Title: Re: pkgfile useless due to lack of .files in repos
Post by: akhilesh on 01. April 2016, 10:54:13
Just curious to see if any progress was made on this or the idea is completely abandoned.

Thanks  ;D