LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg installpkg upgradepkg not working very new to slackware (https://www.linuxquestions.org/questions/slackware-14/slackpkg-installpkg-upgradepkg-not-working-very-new-to-slackware-4175435661/)

lexish 11-04-2012 11:33 PM

slackpkg installpkg upgradepkg not working very new to slackware
 
so i just installed slackware today... still trying to get my feet wet in it but have used other distros for quite some time... the problem im having:

installpkg upgradepkg and slackpkg all return with a command not found error and im not sure if there is something i need to install from the dvd that i didnt

slackware64 ver 14

an example of the error is

ex@Capricorn:~$ sudo nano /etc/slackpkg/mirrors
Password:
lex@Capricorn:~$ sudo slackpkg update gpg
sudo: slackpkg: command not found
lex@Capricorn:~$ slackpkg
bash: slackpkg: command not found

ponce 11-04-2012 11:36 PM

seems to me like a PATH problem, try if becoming root with "su -" instead of using sudo fixes it.

hitest 11-04-2012 11:47 PM

Quote:

Originally Posted by lexish (Post 4822301)
so i just installed slackware today... still trying to get my feet wet in it but have used other distros for quite some time... the problem im having:

installpkg upgradepkg and slackpkg all return with a command not found error and im not sure if there is something i need to install from the dvd that i didnt

slackware64 ver 14

an example of the error is

ex@Capricorn:~$ sudo nano /etc/slackpkg/mirrors
Password:
lex@Capricorn:~$ sudo slackpkg update gpg
sudo: slackpkg: command not found
lex@Capricorn:~$ slackpkg
bash: slackpkg: command not found

Did you uncomment one and only one mirror, that is, remove the # in front of the mirror of your choice?

lexish 11-05-2012 12:26 AM

once i su instead of sudo it worked so thanks how do i mark this as solved?

bogzab 11-05-2012 05:21 AM

Use the "Thread Tools" menu at the top of the thread to mark as SOLVED

BCarey 11-05-2012 11:22 AM

Quote:

Originally Posted by lexish (Post 4822316)
once i su instead of sudo it worked so thanks how do i mark this as solved?

If you prefer using sudo instead of su - you can also add /usr/sbin to your PATH.

Brian


All times are GMT -5. The time now is 06:49 AM.