LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2017, 07:31 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
slackpkg upgrade pkg-Name


Ok now I am feeling slightly stupid.

I have upgraded this pkg before. it somehow was no longer installed? I could not find it installed anyways.

it has been showing up on the updates one version lesser then what I installed using current on a standard 64 14.2 install because it works where the other one does not. So I have been not installing that one. always un-selecting it when running upgrade-all

when I plug in my iPhone I am no longer getting both sides of the phone, only the system said not app side. so I started looking into it, that is what lead me to this post.

libmobiledevice.x.x.x.x.x.x
sudo slackpkg upgrade different pkg higher version.

Code:
userx%slackwhere ⚡ ~ ⚡> sudo slackpkg upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz
now when it runs I get that oops like doing a cat on an executable or tar output.

when I said ok fine and ran slackpkg upgrade-all to in install that less version one just to see what I'd see now I cannot access my iPhone whatsoever - I get an error instead.

Last edited by BW-userx; 04-25-2017 at 07:47 PM.
 
Old 04-25-2017, 07:52 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
never mind

now I know why I was getting commands confused


userx%slackwhere ⚡ ~ ⚡> sudo installpkg upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz

Code:
userx%slackwhere ⚡ ~ ⚡> sudo installpkg  upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz                      
Cannot install upgrade:  file not found
Verifying package libimobiledevice-1.2.0-x86_64-2.txz.
Installing package libimobiledevice-1.2.0-x86_64-2.txz [REC]:
PACKAGE DESCRIPTION:
# libimobiledevice (iOS device communication library) 
#
# A library to communicate with services of Apple iOS devices using native
# protocols.
#
# The libimobiledevice homepage:  http://www.libimobiledevice.org/
#
Executing install script for libimobiledevice-1.2.0-x86_64-2.txz.
Package libimobiledevice-1.2.0-x86_64-2.
even though it is still only giving me the system side. that is a libmobiledevice vs apple iSO thing.

Last edited by BW-userx; 04-25-2017 at 07:55 PM.
 
Old 04-25-2017, 08:56 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
userx%slackwhere ⚡ ~ ⚡> sudo installpkg upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz

Code:
userx%slackwhere ⚡ ~ ⚡> sudo installpkg  upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz                      
Cannot install upgrade:  file not found
installpkg upgrade packagename is not a valid command. That is why you got the error that it can't install upgrade.

Keep in mind, slackpkg should generally only be used if you need to do something from a mirror (usually used to upgrade packages). If you're dealing with local packages, you'd want to use installpkg or upgradepkg. You'd just run installpkg /location/to/package.txz or upgradepkg /location/to/package.txz. If a package already exists, you need to use upgradepkg. If it is the same version, you force it to reinstall using the --reinstall flag (upgradepkg --reinstall /location/to/package.txz). If you're not sure you have the package installed and you're too lazy to check, you can also pass --install-new, which will do install instead of upgrade if the package doesn't exist.

If you wanted to use slackpkg for this, you'd need to have /etc/slackpkg/mirror set to whatever mirror you want (even if it is a local one), then you simply issue slackpkg install libimobiledevice and nothing more. You don't provide a file location or version. Just the name of the package.
 
Old 04-26-2017, 12:49 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
installpkg upgrade packagename is not a valid command. That is why you got the error that it can't install upgrade.

Keep in mind, slackpkg should generally only be used if you need to do something from a mirror (usually used to upgrade packages). If you're dealing with local packages, you'd want to use installpkg or upgradepkg. You'd just run installpkg /location/to/package.txz or upgradepkg /location/to/package.txz. If a package already exists, you need to use upgradepkg. If it is the same version, you force it to reinstall using the --reinstall flag (upgradepkg --reinstall /location/to/package.txz). If you're not sure you have the package installed and you're too lazy to check, you can also pass --install-new, which will do install instead of upgrade if the package doesn't exist.

If you wanted to use slackpkg for this, you'd need to have /etc/slackpkg/mirror set to whatever mirror you want (even if it is a local one), then you simply issue slackpkg install libimobiledevice and nothing more. You don't provide a file location or version. Just the name of the package.
I didn't even see this:
[quote]
userx%slackwhere ⚡ ~ ⚡> sudo installpkg upgrade /media/slack-mirror/slackware64-current/slackware64/l/libimobiledevice-1.2.0-x86_64-2.txz
Cannot install upgrade: file not found
[quote]

because I seen this,
Quote:
Verifying package libimobiledevice-1.2.0-x86_64-2.txz.
Installing package libimobiledevice-1.2.0-x86_64-2.txz [REC]:
PACKAGE DESCRIPTION:
# libimobiledevice (iOS device communication library)
#
# A library to communicate with services of Apple iOS devices using native
# protocols.
#
# The libimobiledevice homepage: http://www.libimobiledevice.org/
#
Executing install script for libimobiledevice-1.2.0-x86_64-2.txz.
Package libimobiledevice-1.2.0-x86_64-2.
it installed it.

yeah plainly I get confused between installpkg and slackpg.
which to use and when or forgetting about one and using the other. Not using them frequently does not help.
 
Old 04-26-2017, 03:27 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
That command was the equivalent of running slackpkg install package1 package2. It thought the "upgrade" was package1, which is why it said it couldn't be found, so it moved onto package2, which was libimobiledevice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg-config upgrade SavoTU Slackware 5 01-28-2015 09:06 PM
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM
slackpkg 2.80.2 not showing "currently installed" version of pkg at bottom of console GrapefruiTgirl Slackware 10 09-23-2009 10:18 AM
pkg-get upgrade jonfa Solaris / OpenSolaris 2 12-06-2007 12:06 PM
help with upgrade pkg problem m3lkor001 Slackware 4 11-28-2007 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration