LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing slackpkg (https://www.linuxquestions.org/questions/slackware-14/installing-slackpkg-4175580969/)

Belikewater 05-29-2016 10:51 AM

Installing slackpkg
 
So I got my Slackware up and running. I am just trying to get slackpkg installed so I can start installing software (like browsers etc). I am trying to follow these instrcutions
Quote:

slackpkg

Your best option is to use slackpkg, which is a package manager on top of Slackware's own pkgtools. Before you can use slackpkg you will need to define an online mirror from which it will download updates to your computer.

A list of available mirrors for your Slackware version can be found in this file:

/etc/slackpkg/mirrors

Open the file in a text editor such as nano or vi and uncomment a single mirror URL. Make sure that the URL mentions the release number for the version of Slackware you are running! Also, pick a mirror which is close to you or of which you know it is fast. When you have done that, you need to initialize slackpkg's database by running

# slackpkg update gpg
# slackpkg update

When I go into nano mirrors I do not see any URL, I see this

# SlackPkg - An Automated packaging tool for Slackware Linux
# Copyright (C) 2003-2011 Roberto F. Batista, Evaldo Gardenali
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Not sure if this is what I need to look at

Tonus 05-29-2016 10:55 AM

Installing slackpkg
 
Slackpkg is part of slackware. Must be used as root.

Belikewater 05-29-2016 11:00 AM

Thanks Tonus. I switched to root. I am doing dumb stuff here just trying to experiment. So do I have to add the url to mirrors in the mirror file?

This is one of my outputs:

bash-4.2# install install_flash_player_11_linux.x86_64
install: missing destination file operand after 'install_flash_player_11_linux.x86_64'
Try 'install --help' for more information.
bash-4.2# slackpkg update gpg

You do not have any mirror selected in /etc/slackpkg/mirrors
Please edit that file and uncomment ONE mirror. Slackpkg
only works with ONE mirror selected.

I know the install command was not right lol. Just experimenting with it.

bormant 05-29-2016 11:08 AM

Belikewater,
scroll down the file.


PS. There are 426 lines in it.

Belikewater 05-29-2016 11:11 AM

Wow Awkward. I see them now. I notice my time zone is incorrect. I ran timeconfig and changed it to Detroit, but it is not updating, so I think those mirrors are going to be all australia (i must have skipped installing time zone on my second install attempt of slackware. ) Not sure how I should proceed with that.

Tonus 05-29-2016 11:53 AM

Installing slackpkg
 
Have a look here for timezone :
http://docs.slackware.com/slackware:localization

hitest 05-29-2016 12:25 PM

Here's a good how to on setting up ntp (network time protocol) in Slackware.

http://docs.slackware.com/howtos:network_services:ntp

To set-up slackpkg you uncomment (remove #) one and only one mirror in /etc/slackpkg/mirrors

Then run these commands in order after switching to root:

# slackpkg update gpg

# slackpkg update

# slackpkg install-new

# slackpkg upgrade-all

bassmadrigal 05-29-2016 12:36 PM

install is an actual program that is part of the coreutils package. It is essentially used to copy a file to a location with specific file permissions. It isn't used with slackpkg.

See the wiki for more info on slackpkg.

To install programs that aren't part of Slackware, you'd need to look into slackpkg+, which is not part of Slackware, but an extension you can install for slackpkg. It does take quite a bit more effort to initially set it up.

http://slakfinder.org/slackpkg+/src/README
http://alien.slackbook.org/blog/intr...-repositories/

Belikewater 05-29-2016 03:49 PM

I still cannot change the timezone so that my mirrors will be more local. I followed the wiki article and did command cp /usr/share/zoneinfo/America/Detroit /etc/localtimecp /usr/share/zoneinfo/America/Detroit /etc/localtime

But I do not see a change. I was logged in as root. I also rebooted. I tried by just right clicking on the time and go to adjust date and time but the option to Apply is grayed out. Not sure what to do.

Ah for some reason I thought you needed slackpkg to install adobe flash player, htm5, Opera Browser etc. I need to get my basics set up so I can actually watch youtube tutorials lol.

Belikewater 05-29-2016 03:51 PM

ah I have it on Detroit, but the time itself has not changed. I will change it now as root. Ill try to figure out the installing of the packages after I get some time to read the documents later. Ill get the essentials first then work on other stuff.

Alien Bob 05-29-2016 03:56 PM

Quote:

Originally Posted by Belikewater (Post 5552663)
Wow Awkward. I see them now. I notice my time zone is incorrect. I ran timeconfig and changed it to Detroit, but it is not updating, so I think those mirrors are going to be all australia (i must have skipped installing time zone on my second install attempt of slackware. ) Not sure how I should proceed with that.

Your Slackware mirror is not going to change if you change your computer's timezone.
You have to enable ONE mirror manually in /etc/slackpkg/mirrors. And if you enable the "http://mirrors.slackware.com/" mirror URL then the IP address of your residential Internet connection will determine what mirror server you will get connected to.

Belikewater 05-29-2016 04:01 PM

That makes sense. Thank you!!
Can't wait to get it all up and running


All times are GMT -5. The time now is 08:38 PM.