How to make a .deb package with a global directory?
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to make a .deb package with a global directory?
I am developing a simple Dollars to Cents Converter for Ubuntu. I followed this tutorial but every time I uninstall the package it deletes "/usr/local/bin". I want to make a global directory where the program gets installed and accessed from anywhere. How do I pull this off?
I can't provide you any of that, I deleted the package and I can't build it any more. But it did delete /usr/local/bin when I uninstalled it because the package stored it in there. Is there a way of storing the files in a directory that the Ubuntu installation did not create so the computer can access from anywhere?
Last edited by RosalinaFan573; 03-27-2016 at 07:44 PM.
Uninstalling the package deleted the directory /usr/local/bin, even though the directory it contained other, unrelated items?
Did the .deb contain a script that deleted that directory?
If you want to make another try, and post the .deb somewhere, people here could check and see if there's something wrong with it that could explain the behavior.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.