asimov-solensan
Contributor
- Joined
- Oct 14, 2016
- Messages
- 113
Hello,
This doubt began when I wanted to test mldonkey inside a jail. But the question in general is how to get older software versions in a jail. Keep in mind that I'm a noob with freebsd, I have done some custom jails like setting up my own custom DNS server with dnsmasq.
I will keep with mldonley as an example, I think there is a bug in actual version but let's ignore this, I want to downgrade it to learn how to do it. In linux I usually grab the version I want from an older repo, but in freebsd I can go back only to 11, and that's my version actually.
Ok so actual version is:
This is the one I want to avoid. And I learned about portdowngrade here: https://makandracards.com/operations/78331-howto-downgrade-a-port-on-freebsd
I check the as the manual says but I get this error:
Now as a bonus track I can see that ports has a newer version but if I try to install I get this:
And if I try to upgrade pkg:
Now the questions are: Can I use portsnap at all in a jail? Is this related to the error with portdowngrade? If that's the case how do I get an older version of a package?
This doubt began when I wanted to test mldonkey inside a jail. But the question in general is how to get older software versions in a jail. Keep in mind that I'm a noob with freebsd, I have done some custom jails like setting up my own custom DNS server with dnsmasq.
I will keep with mldonley as an example, I think there is a bug in actual version but let's ignore this, I want to downgrade it to learn how to do it. In linux I usually grab the version I want from an older repo, but in freebsd I can go back only to 11, and that's my version actually.
Ok so actual version is:
Code:
mldonkey-core-3.1.5_2 Client 'core' for the MLDonkey peer-to-peer network
This is the one I want to avoid. And I learned about portdowngrade here: https://makandracards.com/operations/78331-howto-downgrade-a-port-on-freebsd
I check the as the manual says but I get this error:
Code:
mldonkey-core-3.1.5_3 -> net-p2p/mldonkey-core Choose a port origin (directory) from the list above, and then run portdowngrade category/port root@transmission_1:~/mldonkey # portdowngrade net-p2p/mldonkey-core Choose a revision from this list and run /usr/local/sbin/portdowngrade net-p2p/mldonkey-core revision svn: E170013: Unable to connect to a repository at URL 'https://svn.freebsd.org/ports/head/net-p2p/mldonkey-core' svn: E000065: Error running context: No route to host Choose a revision from the above list and run /usr/local/sbin/portdowngrade net-p2p/mldonkey-core revision root@transmission_1:~/mldonkey #
Now as a bonus track I can see that ports has a newer version but if I try to install I get this:
Code:
root@transmission_1:/usr/ports/net-p2p/mldonkey-core # make install clean ===> mldonkey-core-3.1.5_3 pkg(8) must be version 1.13.0 or greater, but you have 1.10.5. You must upgrade the ports-mgmt/pkg port first. *** Error code 1 Stop. make: stopped in /usr/ports/net-p2p/mldonkey-core root@transmission_1:/usr/ports/net-p2p/mldonkey-core #
And if I try to upgrade pkg:
Code:
root@transmission_1:/usr/ports/ports-mgmt/pkg # make install clean /!\ ERROR: /!\ Ports Collection support for your FreeBSD version has ended, and no ports are guaranteed to build on this system. Please upgrade to a supported release. No support will be provided if you silence this message by defining ALLOW_UNSUPPORTED_SYSTEM. *** Error code 1 Stop. make[1]: stopped in /usr/ports/ports-mgmt/pkg *** Error code 1 Stop. make: stopped in /usr/ports/ports-mgmt/pkg root@transmission_1:/usr/ports/ports-mgmt/pkg #
Now the questions are: Can I use portsnap at all in a jail? Is this related to the error with portdowngrade? If that's the case how do I get an older version of a package?