How to install a pacjage I compiled
stan
stanb at panix.com
Sun Apr 5 18:59:12 UTC 2020
On Sun, Apr 05, 2020 at 07:21:50PM +0100, Colin Watson wrote:
> On Sun, Apr 05, 2020 at 01:22:59PM -0400, stan wrote:
> > 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.
>
> apt was taught how to deal with local packages some years back, and it's
> often useful to use it for that in order to take advantage of its
> dependency handling (consider the case where you're installing a local
> packages not all of whose dependencies are satisfied; dpkg would fail,
> while apt knows how to acquire the dependencies as well).
>
> However, you need to prefix "./" to the file name in order to clue apt
> into the fact that it's meant to be a local file name and not the name
> of a package.
>
Still does not work:
root at openssl-test:~/src# apt-get install --reinstall
./openssl_1.1.1d-0+deb10u2_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'openssl' instead of './openssl_1.1.1d-0+deb10u2_amd64.deb'
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not
upgraded.
Need to get 843 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 openssl amd64
1.1.1d-0+deb10u2 [843 kB]
Fetched 843 kB in 0s (2,332 kB/s)
(Reading database ... 63608 files and directories currently installed.)
Preparing to unpack .../openssl_1.1.1d-0+deb10u2_amd64.deb ...
Unpacking openssl (1.1.1d-0+deb10u2) over (1.1.1d-0+deb10u2) ...
Setting up openssl (1.1.1d-0+deb10u2) ...
Processing triggers for man-db (2.8.5-2) ...
root at openssl-test:~/src# ls -l /usr/bin/openssl
-rwxr-xr-x 1 root root 736776 Oct 12 15:56 /usr/bin/openssl
So the binary never got overwriten.
--
"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