Thursday, June 6, 2013

How to Install Packages on Cinux

    Cinux, as any Linux based operating system, has thousands of programs that can run, however, the negative thing about it is the so called "dependency hell." To solve this we have package managers, and even Cinux has one. It's called Cinux-Get and I've talked about it many times, but never included a complete version of it with Cinux.

    Cinux-Get will be released along with the minimal version of Cinux 2.2, which will feature terminal functionality and will not only target advanced users.
    However, away from Cinux-Get itself, Cinux comes with Dpkg, Debian's package manager for easier use and extended. So, until Cinux-Get actually hits a stable and complete release, you can use 96% of the Debian packages to get your job done.

Search results on Debian's package site.
    So, if you want to install a package, lets say wayland, you would have to go to the Debian Package Repository website and scroll down to "Search Package Directories" and search for "wayland." If you hit enter, you should see the results on your right. By looking at them, the package that you want is the one titled "libwayland0," so go ahead and click on it.

    Once you click on the link "wheezy (stable)" all you need to do is scroll down and in the "Architecture" field click on amd64 and select a mirror to download the package from. Before you download you need to have satisfied all the dependencies listed above "Architecture," in respect to the core packages that are not compatible with Debian builds. For example, in the case of Wayland, the dependencies are lib6, lib6.1 and libffi5, all of which already exist on Cinux and if you install them you will only result to breaking your system.

Next step would be to download and install:
wget http://http.us.debian.org/debian/pool/main/w/wayland/libwayland0_0.85.0-2_amd64.deb
Next upack the deb file:
dpkg-deb -x libwayland0_0.85.0-2_amd64.deb /path/to/wayland
And, just to have yourself covered, fire up nano or vim (whichever one you like) and paste in the following:
#!/bin/bash
for f in $(find /path/to/wayland)
do
 if [ $f == "." ]
 then
  echo "* Excluding '/path/to/wayland'"
 else
  echo "* $f"
  echo "rm -r $f" >> ~/wayland.lst
 fi
done
Then run that script in bash. What this scrip does is very simple: It reads all the files contained in decompressed deb package and appends them to a file created in your home directory. Which, later on or for whatever reason, if you want to delete Wayland from your system, just run:
bash ~/wayland.lst
Just make sure that no vial Cool right? So, go have fun!

You can find the script above here.

No comments:

Post a Comment