Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Managing repositories - Have added 28 repositories

  1. #1
    Join Date
    Jan 2013
    Location
    India
    Posts
    316

    Default Managing repositories - Have added 28 repositories

    I know that if the number of repositories exceeds 10 then we need to prioritize that. But I don't know how.
    I've have got 28 repositories added right now.

    Code:
    akash:~ # zypper lr -d
    #  | Alias                         | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                                         | Service
    ---+-------------------------------+------------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------------------------------+--------
     1 | CrossToolchain:avr            | CrossToolchain:avr                 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_13.2/                |        
     2 | LibreOffice_4.3-openSUSE_13.2 | openSUSE_13.2-LibreOffice_4.3      | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/LibreOffice:/4.3/openSUSE_13.2/                   |        
     3 | X11:Enlightenment:Factory     | X11:Enlightenment:Factory          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Enlightenment:/Factory/openSUSE_13.2/        |        
     4 | devel:languages:perl          | devel:languages:perl               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_13.2/             |        
     5 | devel:languages:python        | devel:languages:python             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_13.2/           |        
     6 | games:tools                   | games:tools                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/games:/tools/openSUSE_13.2/                       |        
     7 | home:Nemton                   | home:Nemton                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Nemton/openSUSE_13.2/                       |        
     8 | home:malcolmlewis:TESTING     | home:malcolmlewis:TESTING          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_13.2_Update/ |        
     9 | home:mreggie                  | home:mreggie                       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/mreggie/openSUSE_13.2/                      |        
    10 | home:srinidhi                 | home:srinidhi                      | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/srinidhi/openSUSE_13.2/                     |        
    11 | openSUSE-13.2-0               | openSUSE-13.2-0                    | No      | No      |   99     | yast2  | hd:///?device=/dev/disk/by-id/scsi-1PHISON_USB3-part2                                       |        
    12 | openSUSE:13.2                 | openSUSE:13.2                      | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/13.2/standard/                          |        
    13 | openSUSE_13.2-Bumblebee       | openSUSE_13.2-Bumblebee            | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/                     |        
    14 | openSUSE_13.2-Education       | openSUSE_13.2-Education            | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Education/openSUSE_13.2/                          |        
    15 | openSUSE_13.2-electronics     | openSUSE_13.2-electronics          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/electronics/openSUSE_13.2/                        |        
    16 | openSUSE_13.2-games           | openSUSE_13.2-games                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_13.2/                              |        
    17 | openSUSE_13.2-libdvdcss       | openSUSE_13.2-libdvdcss            | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/13.2/                                                        |        
    18 | openSUSE_13.2-packman         | openSUSE_13.2-packman              | Yes     | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_13.2/                                                 |        
    19 | openSUSE_13.2-science         | openSUSE_13.2-science              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/science/openSUSE_13.2/                            |        
    20 | openSUSE_13.2-wallpapers      | openSUSE_13.2-wallpapers           | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/artwork:/wallpapers/openSUSE_13.2/                |        
    21 | repo-debug                    | openSUSE-13.2-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.2/repo/oss/                              |        
    22 | repo-debug-update             | openSUSE-13.2-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2/                                             |        
    23 | repo-debug-update-non-oss     | openSUSE-13.2-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2-non-oss/                                     |        
    24 | repo-non-oss                  | openSUSE-13.2-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/non-oss/                                |        
    25 | repo-oss                      | openSUSE-13.2-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/oss/                                    |        
    26 | repo-source                   | openSUSE-13.2-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.2/repo/oss/                             |        
    27 | repo-update                   | openSUSE-13.2-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2/                                                   |        
    28 | repo-update-non-oss           | openSUSE-13.2-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2-non-oss/
    Of 28, 5 are disabled.
    Acer V3-571G - openSUSE Leap 42.2; Windows 10 Pro

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,380

    Default Re: Managing repositories - Have added 28 repositories

    Quote Originally Posted by vish_99 View Post
    I know that if the number of repositories exceeds 10 then we need to prioritize that. But I don't know how.
    That knowledge (if it was ever true) is outdated. Using priorities is something of the past.

    We have now Vendor Stickiness, which is on by default. It means e.g. that when you did the "Change system packages to this Repositorie" for Packman, a package from Packman will not be overwritten by the same package from OSS, even if it has a newer version number.

    So when you did the repo/vendor changing in the correct sequence (for those that have versions of the same package), you are ready.

    BTW having 28 repos is a bit much. Do you realy need those? And do you realy need them Enabled all the time? IMHO it is a recipe for problems.

    BTW on this system I have 17 repos of which 6 enabled: OSS, Non-OSS, Update-OSS, Update-Non-OSS, Packman and Printing (the last one only because of a problem and I guess disabling it will be OK). The disabled ones include libdvdcss and a few I only enable one or two times a year to see if they have newer version. But as long as everyting works, why should I go for newer versions?
    Henk van Velden

  3. #3
    Join Date
    Jan 2013
    Location
    India
    Posts
    316

    Post Re: Managing repositories - Have added 28 repositories

    Quote Originally Posted by hcvv View Post

    So when you did the repo/vendor changing in the correct sequence (for those that have versions of the same package), you are ready.
    So, after I do
    Code:
    zypper dup
    , work done

    IMHO it is a recipe for problems
    What problems are we talking of.

    The disabled ones include libdvdcss and a few I only enable one or two times a year to see if they have newer version. But as long as everyting works, why should I go for newer versions?
    Nice idea.

    Do you realy need those?
    1. CrossToolchain:avr - Arduino IDE
    2. LibreOffice_4.3-openSUSE_13.2 - Because of https://forums.opensuse.org/showthre...fice?p=2696827
    Don't know whether the bug has been solved or not
    3. X11:Enlightenment:Factory - Enlightenment 18
    4. devel:languageserl, devel:languagesython - Came as free gift with arduino. Later many other packages migrated to these by "zypper dup"
    5. games:tools - While installing steam.
    Since, steam doesn't work with proxy connection, I can do away with. But, "zypper dup" messed up.
    6. home:Nemton - maybe steam, can do away with
    7. home:malcolmlewis:TESTING - Somagic firmware
    8. home:mreggie - Don't remember. How can I verify?
    9. home:srinidhi - openmotif
    10. openSUSE_13.2-Bumblebee
    - Bumblebee
    11. openSUSE_13.2-games - Games
    12. Education, Electronics, Science - How can I know which packages are subscribed to these?
    13. Others pacman and other default repos

    So,
    How can I know which packages are subscribed to different repos?
    Acer V3-571G - openSUSE Leap 42.2; Windows 10 Pro

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,380

    Default Re: Managing repositories - Have added 28 repositories

    Quote Originally Posted by vish_99 View Post


    So,
    How can I know which packages are subscribed to different repos?
    Yast > Software > Software Management; then from the View menu: Repositories. Selecting a repo from the list will show you at right what is installed/available from that repo.
    Henk van Velden

  5. #5

    Default Re: Managing repositories - Have added 28 repositories

    Hi,

    You can check which repo a package belongs by using zypper.

    Code:
    zypper if package-name
    To do that in every packages installed you can do

    Code:
    zypper se -is
    Also maybe not related but you can see.
    Code:
    https://forums.opensuse.org/showthread.php/505555-Best-way-to-revert-full-repository-vendor-change?p=2696744#post2696744
    To list packages from specific repos.
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,463
    Blog Entries
    2

    Default Re: Managing repositories - Have added 28 repositories

    A comment and IMO about large number of repos...

    Aside from the original OSS and non-OSS repos basic to all installations, the other repos are typically there to provide packages for special purposes... ie a development environment, a somewhat unusual deployment, apps for special use.

    So, the question then becomes...
    Do you do <all> those things <all> the time? Typically not. At least for me, I get involved in a project but that project has a definite life span. When it ends, it may be some time before I work on a similar project with similar requirements.

    So, you can enable/disable your repos for the immediate tasks at hand.
    Disabling (and disable refresh) can save immense time updating packages and apps unnecessarily when they're not being used.

    Disabling a repo can be easy. First list your repos, then you can modify a repo's status by referencing its number.
    eg
    Code:
    zypper lr
    Followed by disabling one or more repos, the following disables and disables refresh the 8 and 10 repos
    Code:
    zypper mr --disable -R 8 10
    and the following re-enables both repos
    Code:
    zypper mr --enable -r 8 10
    IMO,
    TSU

  7. #7
    Join Date
    Jan 2013
    Location
    India
    Posts
    316

    Post Re: Managing repositories - Have added 28 repositories

    A bit off topic.

    I wanted to know for a given repo what packages are installed.
    This methods does it.
    Quote Originally Posted by hcvv View Post
    Yast > Software > Software Management; then from the View menu: Repositories. Selecting a repo from the list will show you at right what is installed/available from that repo.
    jetchisel's method is also good but has alot of text.
    Quote Originally Posted by jetchisel View Post
    Code:
    zypper se -is
    Had to do
    Code:
    zypper se -is >> /home/akash/Documents/package_repo.txt
    as all the packages were not displayed in konsole.

    Then, I wanted to do a hack. Write the info in .ods or .csv so that I can sort the table/list not according to package name but according to repo name.
    I did
    Code:
    zypper se -is >> /home/akash/Documents/package_repo.ods
    and
    Code:
    zypper se -is >> /home/akash/Documents/package_repo.csv
    But, when I open the file with libreoffice, I'm asked to import and importing doesn't takes properly. While importing from .ods all the content is written in single cell but while importing from .csv the the content does go into different cells but it's all haywire.

    How can I import it properly.
    Acer V3-571G - openSUSE Leap 42.2; Windows 10 Pro

  8. #8
    Join Date
    Jan 2013
    Location
    India
    Posts
    316

    Post Re: Managing repositories - Have added 28 repositories

    jetchisel what does
    Quote Originally Posted by jetchisel View Post
    Code:
    yast2 sw_single
    do.

    For me it just opens yast software management window.
    Acer V3-571G - openSUSE Leap 42.2; Windows 10 Pro

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,380

    Default Re: Managing repositories - Have added 28 repositories

    Quote Originally Posted by vish_99 View Post

    Then, I wanted to do a hack. Write the info in .ods or .csv so that I can sort the table/list not according to package name but according to repo name.
    I did
    Code:
    zypper se -is >> /home/akash/Documents/package_repo.ods
    and
    Code:
    zypper se -is >> /home/akash/Documents/package_repo.csv
    But, when I open the file with libreoffice, I'm asked to import and importing doesn't takes properly. While importing from .ods all the content is written in single cell but while importing from .csv the the content does go into different cells but it's all haywire.

    How can I import it properly.
    Text is not magicaly transformed into an Open Document Spreadsheet or a Comma Separated Values file because you give it a file a name ending in .ods or .csv. For the same reason that
    Code:
    echo "duh" >duh.jpg
    does not create a JPEG picture.
    Henk van Velden

  10. #10
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: Managing repositories - Have added 28 repositories

    28 huh? Not bad. At one point I had over 100. But then I knew how to handle it.
    ______________________________________________________________________________________
    Don't ask "if" something can be done, for it can always be done. Rather instead ask "How" can it be done.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •