Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install custom Debian packages in the workspace as a task #12

Open
obbardc opened this issue Apr 29, 2019 · 4 comments
Open

Install custom Debian packages in the workspace as a task #12

obbardc opened this issue Apr 29, 2019 · 4 comments
Assignees
Milestone

Comments

@obbardc
Copy link
Member

obbardc commented Apr 29, 2019

The following installs all Debian packages in the workspace deb directory.
Is installing all packages in that directory a good idea?

# install deb packages & fix depends
dpkg -i /mnt/workspace/debs/*.deb
apt-get install -f --yes
@obbardc obbardc added this to the 0.0.2 milestone Apr 29, 2019
@danielhjames
Copy link
Member

That is a good point, but I think one workspace per project is appropriate (i.e. if another project requires a different selection of local debs, it should probably have its own workspace). Alternatively the user can customise the task script.

As for using install -f that should work, but I will look into how gdebi-core does the dependency lookup, as that is more slick.

@danielhjames
Copy link
Member

Good news, recent versions of apt support installing local debs as long as a deb of the same name isn't available from a configured repo (in which case the repo version is preferred). For example, after commenting out the 64 Studio repo from the local apt configuration:

sudo apt install ./dibby_0.0.1_all.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'dibby' instead of './dibby_0.0.1_all.deb'
The following NEW packages will be installed:
  dibby
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/5,604 B of archives.
After this operation, 23.6 kB of additional disk space will be used.
Get:1 /home/daniel/64studio/dibby/dibby_0.0.1_all.deb dibby all 0.0.1 [5,604 B]
Selecting previously unselected package dibby.
(Reading database ... 282624 files and directories currently installed.)
Preparing to unpack .../dibby/dibby_0.0.1_all.deb ...
Unpacking dibby (0.0.1) ...
Setting up dibby (0.0.1) ...

It does need the ./ or full local path to find the local file.

@obbardc
Copy link
Member Author

obbardc commented Apr 30, 2019 via email

@danielhjames
Copy link
Member

I think to do that with apt we would need to create a local repository and pin it to a higher priority. Or use gdebi-core in place of apt.

@obbardc obbardc removed their assignment Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants