0

I installed ballerina programming laguage by following this . I installed this by .deb file. Now when I run ballerina -v from anywhere it outputs the version correctly.

I need to configure a VSCode plugin, which needs the path. But the path I entered by getting executed the command which ballerina, doesn't work (gives error as that's not the correct path). Then I tried to see where I installed the package from .deb file by following this, I'm getting an error like this.

dpkg-query: package 'ballerina-platform-linux-installer-x64-0.975.1.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents

Why's that ? How can I get the exact path I installed the above package ?

  • 4
    dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that. – muru Jul 11 '18 at 5:41
  • 1
    @muru Good as an answer – Sergiy Kolodyazhnyy Jul 11 '18 at 5:52
  • @SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin. – muru Jul 11 '18 at 5:53
  • @muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb – Thidasa Pankaja Jul 11 '18 at 5:58
  • 1
    @PankajaParanavitharana that would be wrong, yes. – muru Jul 11 '18 at 6:01
1

dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).

To get the package name:

dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package

and run dpkg -L with that package name.

Of course, if the deb file you have is the one you installed, you can inspect it directly:

dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb

Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.