LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-10-2018, 10:12 AM   #1
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Rep: Reputation: 76
slackpkg+, ffmpeg, and dashes


I use slackpkg+-1.7.0-noarch-9mt and I have a repository (created by slackrepo) that, among others, contains 2 packages:
Code:
ffmpeg
vivaldi-codecs-ffmpeg-extra
The problem that I encounter is that the command
Code:
# slackpkg install ffmpeg
installs both packages (or only vivaldi-codecs-ffmpeg-extra if ffmpeg is already installed)!
 
Old 08-10-2018, 10:58 AM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 815

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Hello,

There is nothing wrong with that. you give to slackpkg (or slackpkg+) the word 'ffmpeg' and it returns all the packages not installed which match your request.

--
SeB
 
1 members found this post helpful.
Old 08-10-2018, 11:18 AM   #3
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 76
Oh, it's a surprise for me! Thank you!
Is there a trick to force slackpkg to install ffmpeg only? I can do
Code:
# slackpkg install ffmpeg-3.2.4
but I need here to know the version number. Is there something simpler?
 
Old 08-10-2018, 11:26 AM   #4
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 815

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Hello,

you can use regular expressions. Something like as below should work.
Code:
$ slackpkg install ffmpeg-[0-9]

--
SeB
 
1 members found this post helpful.
Old 08-10-2018, 12:06 PM   #5
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 76
ffmpeg-[0-9] works, but
Code:
# slackpkg install vivaldi-codecs-ffmpeg-extra-[0-9]
tells "No packages match the pattern for install".
 
1 members found this post helpful.
Old 08-10-2018, 01:06 PM   #6
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 815

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Hello,

Quote:
Originally Posted by slalik View Post
ffmpeg-[0-9] works, but
Code:
# slackpkg install vivaldi-codecs-ffmpeg-extra-[0-9]
tells "No packages match the pattern for install".
But this *should* work. I tried with same kind of request on packages with same kind of basename (ie. four parts, 3 dashes), and it works. Which version of slackpkg gives you that ? Maybe the package is (already) installed ?
--
SeB
 
Old 08-10-2018, 01:17 PM   #7
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 76
I think that it will work with additional star:
Code:
# slackpkg install vivaldi-codecs-ffmpeg-extra-[0-9]*
The reason can be that vivaldi-codecs-ffmpeg-extra has version 65.something, so there are 2 digit before dot. ffmpeg version has 1 digit.

But, unfortunately, this is not a reliable general method: a version can contain letters, not only numbers, also there are no restrictions before the package name, so ffmpeg-[0-9]* will give blah-blah-ffmpeg-[0-9]*.
 
Old 08-11-2018, 04:24 AM   #8
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 789

Rep: Reputation: 289Reputation: 289Reputation: 289
Sounds like you are using batch mode. Normally you are prompted with a dialog to select, deselect.

Just a reminder, typing 'slackpkg install package' for a package that is already installed will result in "No packages match the pattern for install."
 
Old 08-11-2018, 12:03 PM   #9
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 76
I use dialog, but sometimes it's rather long which makes difficult to spot extra packages.

Namely, I use a script that takes a list of packages to the list of all their dependencies (using .dep-files produced by slackrepo). From this thread I conclude that I have to add to this script a map from short package names to long ones. Thus, this thread is "solved" (to an extent), thank you!.
 
Old 08-14-2018, 02:16 PM   #10
Loomx
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 60

Rep: Reputation: Disabled
Quote:
Is there a trick to force slackpkg to install ffmpeg only? I can do
Code:

# slackpkg install ffmpeg-3.2.4

but I need here to know the version number. Is there something simpler?
Tab-completion should work here, shouldn't it? It does for me.

Quote:
# slackpkg install ffmpeg<TAB>
 
Old 08-14-2018, 06:10 PM   #11
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Loomx View Post
Tab-completion should work here, shouldn't it? It does for me.
Yes, it works. But I think it can't be used from script.
 
  


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
slackpkg+ (slackpkgplus) creates glitch with slackpkg installing full package series Poprocks Slackware 5 07-22-2018 05:47 AM
[SOLVED] dashes in a mysql database Habitual Linux - Software 2 08-26-2014 09:25 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Typing em dashes? culturejam Linux - General 1 12-13-2004 10:11 AM

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

All times are GMT -5. The time now is 09:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration