1

I would like to install a package, let's say openssh-client, in my distribution. The problem is that none of the package managers I know are installed on it.

# sudo apt-get install openssh
sudo: apt-get: command not found
# ipkg update
-sh: ipkg: not found
# opkg
-sh: opkg: not found
# dpkg
-sh: dpkg: not found
# apt-get 
-sh: apt-get: not found

The distribution is a minimal one built using BuildRoot. During the system configuration, I specified the package managers I wanted to use but none of them were installed... How can I install a package from source?

14
  • 2
    Ok, so a smart action would be to install a package manager from sources. I'll check how to install apt-get
    – UserK
    Jan 11, 2015 at 19:47
  • 1
    I'm not sure what you are trying to do. Are you trying to learn by building your own system from scratch? If you just want a system, install something with a package manager. Jan 11, 2015 at 19:51
  • 2
    Just build the package. You might also want to Google slash-package. Much of the work package-managers do is necessary only to support package-management.
    – mikeserv
    Jan 11, 2015 at 20:01
  • 1
    Do you have any experience building packages from source? It is usually scripted - and problems during a build are usually due to unmet dependencies and/or misconfigured environment variables. slash-package (and supporting apps) handles much of that by minimizing dependencies and consolidating the build/install tree. Package-managers typically go the opposite way - complicating the process several fold but also abstracting the work onto a series of scripts and tracked databases.
    – mikeserv
    Jan 11, 2015 at 20:37
  • 1
    Allow me to hazard this bit of advice then - start smaller. You might wanna try building a few interesting projects you find browsing github or something before tackling your own distro design. It's kind of a requisite skill for any kind of useful and manageable outcome.
    – mikeserv
    Jan 11, 2015 at 21:07

0

You must log in to answer this question.

Browse other questions tagged .