Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packages [2016/03/11 02:07] – snacsnoc | packages [2023/11/18 17:24] (current) – [Installing packages] snacsnoc | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Installing packages ====== | ===== Installing packages ====== | ||
+ | For a list of all packages available see: http:// | ||
+ | |||
'' | '' | ||
Update the packages list by running | Update the packages list by running | ||
- | fbpkg update | + | |
Search for packages | Search for packages | ||
- | fbpkg search tetris | + | |
Install a package | Install a package | ||
Line 24: | Line 26: | ||
===== Non-native ===== | ===== Non-native ===== | ||
+ | **Note**: It is easier to use pre-built toolchains from here: https:// | ||
+ | |||
**[[http:// | **[[http:// | ||
Line 43: | Line 47: | ||
//(Out of tree build)// | //(Out of tree build)// | ||
- | | + | |
| | ||
| | ||
Line 50: | Line 54: | ||
//Note: extracted [[docker|Docker]] images can be extracted for use as the sysroot if a full build of SnackLinux is undesireable// | //Note: extracted [[docker|Docker]] images can be extracted for use as the sysroot if a full build of SnackLinux is undesireable// | ||
- | make LDFLAGS=" | + | make LDFLAGS=" |
make DESTDIR=/ | make DESTDIR=/ | ||
Line 64: | Line 68: | ||
// | // | ||
- | make headers_install ARCH=x86 INSTALL_HDR_PATH=/ | + | make headers_install ARCH=x86_64 |
**linux-modules** | **linux-modules** | ||
make modules | make modules | ||
- | make modules_install ARCH=x86 INSTALL_MOD_PATH=/ | + | make modules_install ARCH=x86_64 |
+ | ** dropbear 2022.82** | ||
+ | CC=i486-linux-musl-gcc CROSS_COMPILE=i486-linux-musl- ./configure --disable-zlib --host=i486-linux-musl --enable-static | ||
+ | CC=i486-linux-musl-gcc make PROGRAMS=" | ||
===== Native ===== | ===== Native ===== | ||
- | **[[http:// | ||
- | //Note: binutils is first compiled using the cross compiler, so this is using the cross-compiled binutuls to compile a native binutils // | ||
- | | + | **[[http:// |
- | | + | |
- | | + | |
- | | + | |
- | make DESTDIR=/ | + | |
- | + | ||
- | **[[http:// | + | |
./configure --prefix=/ | ./configure --prefix=/ | ||
sh build.sh | sh build.sh | ||
- | ./make DESTDIR=/ | ||
- | **[[https:// | + | Currently a bug running ./make install |
- | ./configure --disable-zlib --disable-wtmp | + | |
+ | ./make DESTDIR=/ | ||
+ | So for now, the binary is just copied in a tarball | ||
+ | |||
+ | **[[https:// | ||
+ | ./configure --disable-zlib | ||
make PROGRAMS=" | make PROGRAMS=" | ||
cp dropbearmulti / | cp dropbearmulti / | ||
Line 98: | Line 101: | ||
dropbearkey -t dss -f dropbear_dss_host_key | dropbearkey -t dss -f dropbear_dss_host_key | ||
dropbear | dropbear | ||
+ | |||
+ | **[[https:// | ||
+ | make CC=x86_64-linux-musl-gcc CFLAGS=-s LDFLAGS=-s | ||
+ | |||
+ | Example usage: ln -s / | ||
+ | |||
+ | |||
+ | ** [[http:// | ||
+ | | ||
+ | make | ||
+ | make DESTDIR=/ | ||
+ | |||
+ | |||
+ | ** [[http:// | ||
+ | make | ||
+ | make prefix=/ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | //Note: binutils is first compiled using the cross compiler, so this is using the cross-compiled binutuls to compile a native binutils // | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | make | ||
+ | make DESTDIR=/ | ||
+ | |||
+ | |||
** [[http:// | ** [[http:// | ||
Line 116: | Line 149: | ||
- | ** [[http:// | + | ** [[http:// |
+ | See: https:// | ||
+ | wget http:// | ||
sed -i ' | sed -i ' | ||
# | # | ||
sed -i ' | sed -i ' | ||
+ | patch -p1 < lilo-geometry.patch | ||
make alles | make alles | ||
cp src/ | cp src/ | ||
Line 160: | Line 196: | ||
make DESTDIR=/ | make DESTDIR=/ | ||
- | ** [[http:// | ||
- | make CC=" | ||
- | make prefix=/ | ||
** [[http:// | ** [[http:// | ||
Line 193: | Line 226: | ||
make DESTDIR=/ | make DESTDIR=/ | ||
- | ** [[http:// | ||
- | | ||
- | | ||
- | make DESTDIR=/ | ||
** [[http:// | ** [[http:// | ||
Line 256: | Line 285: | ||
| | ||
- | **[[https:// | + | |
- | | + | |
- | + | ||
- | //Example usage: ln -s / | + | |
**[[http:// | **[[http:// | ||
+ | < | ||
| | ||
| | ||
make | make | ||
- | make DESTDIR=/ | + | make DESTDIR=/ |
+ | </ |