How to install a pacjage I compiled
stan
stanb at panix.com
Sun Apr 5 17:22:59 UTC 2020
On Sun, Apr 05, 2020 at 05:11:45PM +0200, Tom H wrote:
> On Sun, Apr 5, 2020 at 2:39 PM stan <stanb at panix.com> wrote:
> > On Sun, Apr 05, 2020 at 02:14:45PM +0200, Tom H wrote:
> >> On Sun, Apr 5, 2020 at 1:51 PM stan <stanb at panix.com> wrote:
> >>> On Sat, Apr 04, 2020 at 03:26:43PM -0400, Gene Heskett wrote:
> >>>>
> >>>> Have you looked in /usr/local/bin? Generally, locally built stuff
> >>>> gets installed there, but its also not generally in the users $PATH,
> >>>> so re-arranging the order of the $PATH is often all you need to do,
> >>>> put /usr/local/bin as the first entry and it will find that copy by
> >>>> default.
> >>>
> >>> The reason I am trying to build it from the Debian sources, is that
> >>> I want it to replace the default binaries installed from the
> >>> repositories. I could just download it from github, and compile/
> >>> install it if I wanted it in the usr/local tree.
> >>
> >> Did you increment the package version?
> >
> > No, How do I do that?
>
> You add an entry to "debian/changelog".
>
> You can edit it directly, or, if you have devscripts installed, you
> can run "dch" in the "debian/" directory.
>
>
> >>> But in any case, there is nothing in /usr/local/bin
> >>
> >> There wouldn't be if you used the Ubuntu source setup with new
> >> upstream sources.
> >
> > Yes, that is what I expect. I am trying to build a version of this
> > package to replace the upstream version.
> >
> > I suspect you have identified the issue as the lack of incrementing
> > the version number. Perhaps if I can understand how to do this, all
> > will be well.
>
> Probably. Because, you rebuilt your package without incrementing the
> version "apt-get install <package>" won;t do anything. You'd have to
> use "apt-get install --reinstall" <package>". But it's better to use a
> different version to know exactly what you have installed. - and to
> know that you've customized that package.
>
I decided to try the --resintall first. So I have the following, which I
built yesterday:
root at openssl-test:~/src# ls -l openssl_1.1.1d-0+deb10u2_amd64.deb
-rw-r--r-- 1 root root 843396 Apr 4 14:08 openssl_1.1.1d-0+deb10u2_amd64.deb
yet when I do this:
apt-get install --reinstall openssl_1.1.1d-0+deb10u2_amd64.deb
I get:
Building dependency tree
Reading state information... Done
E: Unable to locate package openssl_1.1.1d-0+deb10u2_amd64.deb
E: Couldn't find any package by glob 'openssl_1.1.1d-0+deb10u2_amd64.deb'
E: Couldn't find any package by regex 'openssl_1.1.1d-0+deb10u2_amd64.deb'
I had been trying to install it with dpkg as I thought that was the right
way to do it for a local package, whereas I thought at-get wanted to
download from the repositories.
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
More information about the ubuntu-users
mailing list