LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-17-2016, 08:37 AM   #121
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47

I have following problem: slpkg is trying to get files for Slackware version "14.2" (see url in output below) and obviously it is failing:

Quote:
# slpkg update

Check and update repositories:

Check repository [slonly] ...
[1/1][ Download ] --> PACKAGES.TXT

--2016-01-18 01:28:17-- http://packages.slackonly.com/pub/pa...6/PACKAGES.TXT
Resolving packages.slackonly.com (packages.slackonly.com)... 45.58.49.216
Connecting to packages.slackonly.com (packages.slackonly.com)|45.58.49.216|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-01-18 01:28:18 ERROR 404: Not Found.


+==============================================================================
| Download 'PACKAGES.TXT' file [ FAILED ]
+==============================================================================

Would you like to continue [y/N]?
bash-4.3#
The entry "RELEASE=stable" is there in the file /etc/slpkg/slpkg.conf . The slpkg version is 3.0.5
How can I correct this?

Edit: I found that /etc/slackware-version file had "Slackware 14.2" rather than "Slackware 14.1". Correcting this solved the problem and slpkg is working well. I do not know how this recently installed Slackware had "Slackware 14.2" entry.

Last edited by rng; 01-19-2016 at 03:07 AM.
 
Old 01-19-2016, 11:32 AM   #122
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
slpkg works very well but it does not pick up all dependencies. For example, I installed following and some dependencies were missed:
Code:
Application : 	        missed dependencies

abiword: 		wv, cyrus-sasl-lib-2
Thunar: 		exo, xfce4util, libxfce4ui, xfconf
xoscope: 		gtkdatabox
But overall, package management is much easier with slpkg.
 
Old 01-19-2016, 11:39 AM   #123
dslackw
Member
 
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 15.0 x86_64 -stable
Posts: 158

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by rng View Post
slpkg works very well but it does not pick up all dependencies. For example, I installed following and some dependencies were missed:
Code:
Application : 	        missed dependencies

abiword: 		wv, cyrus-sasl-lib-2
Thunar: 		exo, xfce4util, libxfce4ui, xfconf
xoscope: 		gtkdatabox
But overall, package management is much easier with slpkg.

From what repository?
 
Old 01-19-2016, 06:50 PM   #124
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
xoscope and abiword from slackonly; Thunar from slackware. The missing dependencies may be due to my incomplete Slackware installation also, since I had selected only A, AP, D, L, N, X and KDE packages during installation.
 
Old 01-19-2016, 07:37 PM   #125
dslackw
Member
 
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 15.0 x86_64 -stable
Posts: 158

Original Poster
Rep: Reputation: 44
It is repository issues.

Slackware repository it has not reference dependencies.
Slonly repository sometimes no reference dependencies for packages.
 
Old 01-19-2016, 10:55 PM   #126
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by rng View Post
xoscope and abiword from slackonly; Thunar from slackware. The missing dependencies may be due to my incomplete Slackware installation also, since I had selected only A, AP, D, L, N, X and KDE packages during installation.
At the moment many packages in slackonly repository have empty REQUIRED line on it's PACKAGES.TXT file. Hence, whatever package manager you use, some dependency problems are unavoidable.

Regarding Thunar, don't try to install it from slackware repository as you haven't installed Xfce desktop and slackware repository doesn't provide dependency information for slpkg. Use salix repository instead. Just uncomment salix repository from /etc/slpkg/repositories.conf or add nearest salix mirror using slpkg repo-add command.
 
Old 01-20-2016, 09:01 AM   #127
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Thanks.

Can slpkg be used to find 'orphan' library packages or dependencies - i.e. those whose main package has been removed and which are now lying unneeded on the system?
 
Old 01-20-2016, 09:19 AM   #128
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
I do know (I still have to give slpkg a go), but usm can.

Last edited by Didier Spaier; 01-20-2016 at 09:27 AM.
 
Old 01-20-2016, 11:41 AM   #129
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
I tried to see in 'man usm' and on its web page (http://sourceforge.net/p/usm/wiki/Home/) but could not find its command to find orphan packages. What usm command can I use?
 
Old 01-20-2016, 11:46 AM   #130
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
You will get the man page after having installed the package.
 
Old 01-20-2016, 11:56 AM   #131
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
I already have it installed and I have seen the man page but could not find the command. One could possibly list all library files and feed each of them into 'usm -s' command one by one using xargs. How do you find orphan packages in usm?
 
Old 01-20-2016, 12:26 PM   #132
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
What do you mean by "orphan package"?
 
Old 01-20-2016, 01:45 PM   #133
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
@rng
You mean something like "apt-get autoremove". No, slpkg doesn't provide such an option. However if you use it to remove third-party packages by "slpkg -r --deps <packagename>" you don't have any third-party orphan library on your system. Genuine orphan slackware libraries are different story and I don't think slpkg, usm and other package managers have the ability to find and remove them.

Last edited by travis82; 01-20-2016 at 01:47 PM.
 
Old 01-20-2016, 02:00 PM   #134
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
@rng: maybe you meant by "orphaned library" a library not shipped in any installed Slackware package. This can be checked with some pseuod-code like
Code:
for LIBRARY in <list of all installed libraries>; do
    if ! grep -wg $LIBRARY /var/log/packages/*; then
        printf  b "The library $LIBRARY is orphaned.\n"
    fi
done
But if a library was installed another way than as shipped in a Slackware package regularly installed, then removing it could have negative consequences.

Of course you'd have to take care of the symlinks as well, that are usually recorded in /var/log/scripts.

Last edited by Didier Spaier; 01-20-2016 at 02:02 PM.
 
Old 01-20-2016, 02:39 PM   #135
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
@Didier
I think by orphan libraries he means libraries which are not dependency of installed packages.
 
  


Reply



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
Install Advanced Packaging Tool on a linux from scratch machine ledzepp4eva Linux - Newbie 7 12-16-2011 09:13 AM
Upgrading Slackware (packaging questions) jrdioko Slackware 5 08-17-2005 07:23 PM
Slackware packaging wombat53 Slackware - Installation 16 07-08-2005 11:44 AM
Packaging manager for Slackware 9.1 ??? Fernando534 Linux - Newbie 4 05-07-2004 02:26 PM

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

All times are GMT -5. The time now is 05:04 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