Various ways to install packages in Slackware Linux

Various ways to install packages in Slackware Linux:


1.) Slackpkg
2.) Slackbuilds and Sbopkg
3.) Pkgtool and installpkg
4.) Classic Compile from Source with Make:
    - After the downloading the source files (recommended in /usr/local/src/), cd to /usr/local/src Read any readme or text or instructional files included.
    - Extract to a directory, by GUI extract or command line:
[tar] - Extract (unpack) a TAR File
$ tar -xvf foo.tar

[tar.gz] - Extract and Uncompress a TAR File Compressed with GZIP
$ tar -xvzf foo.tar.gz

[tar.bz2] - Extract and Uncompress a TAR File Compressed with BZIP2
$ tar -xvjf foo.tar.bz2

    - Go into that directory and issue the commands in order, $ as user, # as root.
    $ ./configure
    $ make
    # make install
    # make clean 

When you want to uninstall it, you do the following:

    $ cd /usr/local/src/foo
    as root
    # make uninstall 

5.) Compile and install with Checkinstall:

Classic Compile from Source with Make:
    - After the downloading the source files (recommended in /usr/local/src/), cd to /usr/local/src Read any readme or text or instructional files included.
    - Extract to a directory, by GUI extract or command line
    - Go into that directory and issue the commands in order, $ as user, # as root.
    $ ./configure
    $ make
    # checkinstall 
(When called with no arguments, checkinstall will call "make install". If you need other arguments, they can be supplied)
(As optional like this ff -
# checkinstall make install_package
)


The difference with Checkinstall and make install, is that checkinstall tracks the package, so to uninstall it, just check /var/log/packages and use removepkg foo,
to uninstall.


6.) Src2pkg

0 comments:

Post a Comment