Author Topic: pkgfile useless due to lack of .files in repos  (Read 6263 times)

0 Members and 1 Guest are viewing this topic.

Offline Ayceman

  • Core Team
  • *****
  • Posts: 2113
  • Security Chief :P
  • Branch: stable, unstable
  • Desktop: Xfce
  • GPU Card: GTX780/HD3000/AMD8400
  • GPU driver: Nvidia/Intel/Catalyst
  • Kernel: latest stable+lts (64)
  • Skill: Advanced
pkgfile useless due to lack of .files in repos
« 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

Offline mesamoo

  • Neuling
  • *
  • Posts: 10
  • Branch: Stable, sometimes testing
  • Desktop: KDE primary, OpenBox alt, others
  • GPU Card: GeForce GT 440
  • GPU driver: NVidia non-free current from stable
  • Kernel: 3.12.(current from stable)-MANJARO smp preempt x86_64
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #1 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

Offline gadelat

  • Neuling
  • *
  • Posts: 5
  • Skill: Novice
Re: pkgfile useless due to lack of .files in repos
« Reply #2 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.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #3 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
« Last Edit: 20. March 2014, 13:04:18 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline gadelat

  • Neuling
  • *
  • Posts: 5
  • Skill: Novice
Re: pkgfile useless due to lack of .files in repos
« Reply #4 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.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #5 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
(...)
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline gadelat

  • Neuling
  • *
  • Posts: 5
  • Skill: Novice
Re: pkgfile useless due to lack of .files in repos
« Reply #6 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

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: pkgfile useless due to lack of .files in repos
« Reply #7 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.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #8 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
(...)
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline gadelat

  • Neuling
  • *
  • Posts: 5
  • Skill: Novice
Re: pkgfile useless due to lack of .files in repos
« Reply #9 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.
« Last Edit: 20. March 2014, 23:56:59 by gadelat »

Offline Ayceman

  • Core Team
  • *****
  • Posts: 2113
  • Security Chief :P
  • Branch: stable, unstable
  • Desktop: Xfce
  • GPU Card: GTX780/HD3000/AMD8400
  • GPU driver: Nvidia/Intel/Catalyst
  • Kernel: latest stable+lts (64)
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #10 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.

Offline gadelat

  • Neuling
  • *
  • Posts: 5
  • Skill: Novice
Re: pkgfile useless due to lack of .files in repos
« Reply #11 on: 22. August 2014, 14:06:22 »
What's the state of solving this problem?

Offline bogen

  • Neuling
  • *
  • Posts: 1
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #12 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.

Offline indefiance11

  • Neuling
  • *
  • Posts: 4
  • Desktop: Gnome
  • GPU Card: Nvidia and ATI
  • GPU driver: non-free
  • Kernel: 3.13
  • Skill: Intermediate
Re: pkgfile useless due to lack of .files in repos
« Reply #13 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...

Offline Skully

  • Jr. Mitglied
  • **
  • Posts: 96
  • Branch: stable
  • Desktop: KDE
  • GPU Card: nVidia GTX 660ti 2gb
  • GPU driver: non-free
  • Kernel: 3.18 x86_64
  • Skill: Advanced
Re: pkgfile useless due to lack of .files in repos
« Reply #14 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.