Score:0

How to use a distribution-specific package file

US flag

I want to compile KiCad ver 6.0 on my Ubuntu 22.0 WSL2 instance. The build guide states that there is a distribution-specific packages that has to be installed in order for a succesful build. The file is hosted here, but I have no idea how can I use this file? My guess is the file should be called with a command that pulls and installs all the packages named in the file.

Can you please tell me how to do this in Ubuntu?

hr flag
Why do you want to *compile* it, specifically? [kicad 6.0.2](https://packages.ubuntu.com/jammy/kicad) appears to be available from the universe repository
DEKKER avatar
md
@steeldriver well I want to do some changes in the source code :D
hr flag
OK well since you are trying to build the same major version that's already in the repo, installing *that* version's `build-deps` is likely equivalent
hr flag
... otherwise, the only way I'm aware of to use the control file information in that way is via a low-level devscript - see for example [How to install build dependencies directly from the debian/control file?](https://stackoverflow.com/a/19432425/4440445)
guiverc avatar
cn flag
Check what release you're actually using; 0 is an invalid month. Ubuntu's main products are *year.month* in format, with 22.04 representing the 2022-April release (2000 being added to the *year*), with specialist *snap* only products using the *year* format, so 22 for the *flavor* of Ubuntu 22.04 LTS that is *snap* package only. Your 22.0 makes no sense; you'll find there is another number making it 10 (October) or 04 (April) etc.
Score:2
cn flag

As it is written in the build guide, you need to install packages mentioned in Depends and Build-Depends fields.

The packages are installed by sudo apt install.

For example:

sudo apt install doxygen

As @steeldriver mentioned this software can be found in Ubuntu repos. So running

sudo apt build-deps kicad

should work.

DEKKER avatar
md
Thanks, I know the apt install X, I was thinking that I can feed this file into a command and it installs the packages automatically?
Pilot6 avatar
cn flag
Actually you can use a few packages delimited by space. Also you need only Build-Depends. After you build a package "Depends" will really be installed automatically by apt.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.