You are not logged in.

#1 2015-08-11 23:29:32

Sanic
Member
Registered: 2015-06-30
Posts: 29

[Solved] How to change the binary executable name of a package?

I installed RStudio through the AUR using packer. The package name was rstudio-bin and I would like to change the binary executable name to just rstudio. How would I go about changing this?

Last edited by Sanic (2015-08-12 02:07:53)

Offline

#2 2015-08-11 23:54:52

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [Solved] How to change the binary executable name of a package?

probably easiest to set up an alias.  You could probably just rename it (or symlink) but it would leave dangling entries on a pkg removal

Offline

#3 2015-08-12 00:01:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] How to change the binary executable name of a package?

Which package did you use?
You can modify the PKGBUILD to set up a different symlink: https://aur.archlinux.org/cgit/aur.git/ … esktop-bin

Offline

#4 2015-08-12 00:50:01

majustsu
Member
Registered: 2015-08-11
Posts: 16

Re: [Solved] How to change the binary executable name of a package?

The easiest way to do this is to setup a bash alias in your ~/.bashrc file.
It is as simple as placing this anywhere in your bashrc file:

alias name='command/program name'

Offline

#5 2015-08-12 01:34:17

Sanic
Member
Registered: 2015-06-30
Posts: 29

Re: [Solved] How to change the binary executable name of a package?

karol wrote:

Which package did you use?
You can modify the PKGBUILD to set up a different symlink: https://aur.archlinux.org/cgit/aur.git/ … esktop-bin


In this line?
    ln -s -f ../lib/rstudio/bin/rstudio rstudio-bin
just change rstudio-bin to rstudio?

oliver wrote:

probably easiest to set up an alias.  You could probably just rename it (or symlink) but it would leave dangling entries on a pkg removal

If I create an alias will the alias work in my dmenu or other launchbars?

Offline

#6 2015-08-12 01:42:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] How to change the binary executable name of a package?

Yes, it's just a symlink, the location and name should be sensible, but the rest is up to you.
I think it's best to have it in your $PATH an not rely on aliases.

Offline

#7 2015-08-12 02:07:19

Sanic
Member
Registered: 2015-06-30
Posts: 29

Re: [Solved] How to change the binary executable name of a package?

nice! I just reinstalled it. Thank you!

Offline

Board footer

Powered by FluxBB